libnl/lib/netfilter
Isaac 996b502961 FTBFS with musl libc: Missing includes
Hello,
libnl 3.2.9 does not build with musl libc, without patching.
I' using a current musl libc (http://www.etalabs.net/musl/)
with linux 2.6.32 headers.
At first there were a couple problems on the musl side, but those are
resolved.
However, I found some other issues:
First, two files were missing
#include <byteswap.h>:
lib/netfilter/log_msg.c
lib/netfilter/queue_msg.c
These files used __bswap_64 (which should be bswap_64), a macro
declared in byteswap.h

Second, I got this error after fixing that:

In file included from nf-queue.c:16:
./include/linux/netfilter.h:53: error: field in has incomplete type
./include/linux/netfilter.h:54: error: field in6 has incomplete type

I found that src/nf-queue.c is missing an
#include <netinet/in.h>

Attached is a patch which resolves these issues.  I've tested with both
musl and glibc, and it builds cleanly on both.
2012-05-13 11:18:28 +02:00
..
ct.c FTBFS with musl libc: Missing includes 2012-05-13 11:18:28 +02:00
ct_obj.c constify struct trans_tbl 2010-11-17 16:09:08 +01:00
log.c Add internal wait_for_ack() which only waits for ACK if !NL_NO_AUTO_ACK 2008-10-20 13:12:13 +02:00
log_msg.c FTBFS with musl libc: Missing includes 2012-05-13 11:18:28 +02:00
log_msg_obj.c Remove old line counting while dumping 2008-05-23 23:45:14 +02:00
log_obj.c constify struct trans_tbl 2010-11-17 16:09:08 +01:00
netfilter.c constify struct trans_tbl 2010-11-17 16:09:08 +01:00
nfnl.c doc: documentation restructuring 2012-05-10 12:03:59 +02:00
queue.c libnl: nfqueue: add nfqueue specific socket allocation function 2008-10-23 13:59:40 +02:00
queue_msg.c FTBFS with musl libc: Missing includes 2012-05-13 11:18:28 +02:00
queue_msg_obj.c constify struct trans_tbl 2010-11-17 16:09:08 +01:00
queue_obj.c constify struct trans_tbl 2010-11-17 16:09:08 +01:00