sctplab / sctp-refimpl

Automatically exported from code.google.com/p/sctp-refimpl
BSD 2-Clause "Simplified" License
8 stars 2 forks source link

Build failure on linux with musl libc #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The attached patches fix 3 build issues on a linux system with musl libc 
(http://musl-libc.org)

- musl is linux but does not have <sys/queue.h> by default. The first patch 
let's autoconf detect the presence of <sys/queue.h> and uses the fallback 
currently only used for Windows when not found

- musl does not have <sys/cdefs.h>. The header has mainly been used for macros 
for compatibility with pre-ANSI-C compilers. These macros (__BEGIN_DECLS, 
__END_DECLS and __P) are only used for FreeBSD. So make the include conditional 
on FreeBSD. It would also make sense to remove this cruft alltogether.

- musl follows POSIX and declares IPPORT_RESERVED in <netdb.h>. But <netdb.h> 
is never included in the source.

Original issue reported on code.google.com by janda.felix on 25 Feb 2015 at 9:04

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by t00FC...@googlemail.com on 16 Mar 2015 at 8:14

GoogleCodeExporter commented 9 years ago
Thanks for reporting the issues. These should be fixed in r9190 and higher.

Best regards
Michael

Original comment by t00FC...@googlemail.com on 16 Mar 2015 at 10:11