From 1329bea90f55d3e69820cfb5203b53794d4c6bc0 Mon Sep 17 00:00:00 2001 From: Yegor Yefremov Date: Thu, 10 Mar 2016 09:54:26 +0100 Subject: [PATCH] Fix musl build Replace __BEGIN_DECLS/__END_DECLS macros with following blocks: extern "C" { } __BEGIN_DECLS/__END_DECLS are not part of all C libraries. Signed-off-by: Yegor Yefremov Signed-off-by: Marcelo Ricardo Leitner --- src/include/netinet/sctp.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/include/netinet/sctp.h b/src/include/netinet/sctp.h index 51f5bfb..47571cd 100644 --- a/src/include/netinet/sctp.h +++ b/src/include/netinet/sctp.h @@ -37,7 +37,9 @@ #include #include -__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 +} +#endif #endif /* __linux_sctp_h__ */