Skip to content

Commit

Permalink
Fix musl build
Browse files Browse the repository at this point in the history
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 <yegorslists@googlemail.com>
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
  • Loading branch information
yegorich authored and marceloleitner committed Mar 10, 2016
1 parent 9e366fa commit 1329bea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/include/netinet/sctp.h
Expand Up @@ -37,7 +37,9 @@
#include <linux/types.h>
#include <sys/socket.h>

__BEGIN_DECLS
#ifdef __cplusplus
extern "C" {
#endif

typedef __s32 sctp_assoc_t;

Expand Down Expand Up @@ -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__ */

0 comments on commit 1329bea

Please sign in to comment.