lwipv6: fix cross, musl

This commit is contained in:
Leah Neukirchen 2018-02-13 21:19:46 +01:00
parent 641c9e007c
commit 45c6a2705e
3 changed files with 39 additions and 1 deletions

View File

@ -3088,3 +3088,4 @@ libarcan_shmif_ext.so.0.11 arcan-0.5.4.3_1
libarcan_shmif_server.so.0.11 arcan-0.5.4.3_1
libarcan_tui.so.0.11 arcan-0.5.4.3_1
libscrypt.so.0 libscrypt-devel-1.21_1
liblwipv6.so.2 lwipv6-1.5a_1

View File

@ -0,0 +1,36 @@
--- lwip-v6/src/include/lwip/if.h.orig
+++ lwip-v6/src/include/lwip/if.h
@@ -183,18 +183,14 @@
# define _IOT_ifconf _IOT(_IOTS(struct ifconf),1,0,0,0,0) /* not right */
#endif /* Misc. */
-__BEGIN_DECLS
-
/* Convert an interface name to an index, and vice versa. */
-extern unsigned int if_nametoindex (__const char *__ifname) __THROW;
-extern char *if_indextoname (unsigned int __ifindex, char *__ifname) __THROW;
+extern unsigned int if_nametoindex (__const char *__ifname);
+extern char *if_indextoname (unsigned int __ifindex, char *__ifname);
/* Return a list of all interfaces and their indices. */
-extern struct if_nameindex *if_nameindex (void) __THROW;
+extern struct if_nameindex *if_nameindex (void);
/* Free the data returned from if_nameindex. */
-extern void if_freenameindex (struct if_nameindex *__ptr) __THROW;
-
-__END_DECLS
+extern void if_freenameindex (struct if_nameindex *__ptr);
#endif /* net/if.h */
--- lwip-v6/src/include/lwip/sockets.h.orig
+++ lwip-v6/src/include/lwip/sockets.h
@@ -479,8 +479,6 @@
this large value the readv/writev call will not fail because of this. */
#define UIO_MAXIOV 1024
-#define size_t u32_t
-
#if 0
/* Structure for scatter/gather I/O. */
struct iovec {

View File

@ -3,13 +3,14 @@ pkgname=lwipv6
version=1.5a
revision=1
build_style=gnu-configure
hostmakedepends="libpcap-devel vde2-devel"
makedepends="libpcap-devel vde2-devel"
short_desc="User level (lightweight) TCP/IP stack with IPv6 support"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2"
homepage="http://wiki.v2.cs.unibo.it/wiki/index.php/LWIPV6"
distfiles="${SOURCEFORGE_SITE}/view-os/${pkgname}/${version}/${pkgname}-${version}.tar.bz2"
checksum=4ad9415c0bf9a2aca0aa858ac1601c20d7c04b5d051d000d4a03eb1eeb0ed05a
CPPFLAGS='-DGNU_SOURCE -D__USE_MISC -D__caddr_t=caddr_t'
lwipv6-devel_package() {
short_desc+=" - development files"