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/musl.patch | |
parent | bb06f5bd41cb32fbd8a443aedb7362960096c5ae (diff) | |
download | aports-ad9c1707de13c17255879aaf0cfed4f11732417f.tar.bz2 aports-ad9c1707de13c17255879aaf0cfed4f11732417f.tar.xz |
main/lksctp-tools: musl build fix
Diffstat (limited to 'main/lksctp-tools/musl.patch')
-rw-r--r-- | main/lksctp-tools/musl.patch | 25 |
1 files changed, 25 insertions, 0 deletions
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__ */ |