diff options
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__ */ |