diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-02-18 10:29:56 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-02-18 10:29:56 +0000 |
commit | ad9c1707de13c17255879aaf0cfed4f11732417f (patch) | |
tree | 5559641010be38393276a4f33531c59c5fd142b0 /main/lksctp-tools | |
parent | bb06f5bd41cb32fbd8a443aedb7362960096c5ae (diff) | |
download | aports-ad9c1707de13c17255879aaf0cfed4f11732417f.tar.bz2 aports-ad9c1707de13c17255879aaf0cfed4f11732417f.tar.xz |
main/lksctp-tools: musl build fix
Diffstat (limited to 'main/lksctp-tools')
-rw-r--r-- | main/lksctp-tools/APKBUILD | 14 | ||||
-rw-r--r-- | main/lksctp-tools/musl.patch | 25 |
2 files changed, 34 insertions, 5 deletions
diff --git a/main/lksctp-tools/APKBUILD b/main/lksctp-tools/APKBUILD index 6d90faf06b..c482264d35 100644 --- a/main/lksctp-tools/APKBUILD +++ b/main/lksctp-tools/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=lksctp-tools pkgver=1.0.15 -pkgrel=0 +pkgrel=1 pkgdesc="User-space access to Linux Kernel SCTP" url="http://lksctp.sourceforge.net" arch="all" @@ -11,7 +11,8 @@ depends_dev="" makedepends="$depends_dev libtool automake autoconf" install="" subpackages="$pkgname-dev $pkgname-doc" -source="http://downloads.sourceforge.net/lksctp/lksctp-tools-$pkgver.tar.gz" +source="http://downloads.sourceforge.net/lksctp/lksctp-tools-$pkgver.tar.gz + musl.patch" _builddir="$srcdir"/lksctp-tools-$pkgver prepare() { @@ -42,6 +43,9 @@ package() { rm "$pkgdir"/usr/lib/*.la "$pkgdir"/usr/lib/lksctp-tools/*.la } -md5sums="d829677541fb41061e7f4d61f8413b07 lksctp-tools-1.0.15.tar.gz" -sha256sums="5ef2330c8dc6bc454c26f6e9fb53bbe5a6a8372740aebd1be8c326b526106e78 lksctp-tools-1.0.15.tar.gz" -sha512sums="ecf04e28c0517bf4c083af6474ee66dac75e672edd95d975755c0e1cf7e8d3d1353254c7b73054c56746564a6c7f164859fab4ead46f9084f70d34272e2aaa59 lksctp-tools-1.0.15.tar.gz" +md5sums="d829677541fb41061e7f4d61f8413b07 lksctp-tools-1.0.15.tar.gz +446284745da795d9680d3a1d9b78ede4 musl.patch" +sha256sums="5ef2330c8dc6bc454c26f6e9fb53bbe5a6a8372740aebd1be8c326b526106e78 lksctp-tools-1.0.15.tar.gz +5c5a340f69a44593e8b24544991d5c8c9efd8320d7ac9c2131265f15910e0e82 musl.patch" +sha512sums="ecf04e28c0517bf4c083af6474ee66dac75e672edd95d975755c0e1cf7e8d3d1353254c7b73054c56746564a6c7f164859fab4ead46f9084f70d34272e2aaa59 lksctp-tools-1.0.15.tar.gz +8c837c7e1e825f5e1ae26c5dc622d2803f5421efaf65add5b56f9c383d3505c8654ebf1ba7d18ee0dba512a2a96137060bac6de55abb2604162a9087bbd4db94 musl.patch" diff --git a/main/lksctp-tools/musl.patch b/main/lksctp-tools/musl.patch new file mode 100644 index 0000000000..1166f50f48 --- /dev/null +++ b/main/lksctp-tools/musl.patch @@ -0,0 +1,25 @@ +diff --git a/src/include/netinet/sctp.h b/src/include/netinet/sctp.h +index 51f5bfb..2e41ab6 100644 +--- a/src/include/netinet/sctp.h ++++ b/src/include/netinet/sctp.h +@@ -37,7 +37,9 @@ + #include <linux/types.h> + #include <sys/socket.h> + +-__BEGIN_DECLS ++#ifdef __cplusplus ++extern "C" { ++#endif + + typedef __s32 sctp_assoc_t; + +@@ -862,6 +864,8 @@ int sctp_recvmsg(int s, void *msg, size_t len, struct sockaddr *from, + /* Return the address length for an address family. */ + int sctp_getaddrlen(sa_family_t family); + +-__END_DECLS ++#ifdef __cplusplus ++} /* extern "C" */ ++#endif + + #endif /* __linux_sctp_h__ */ |