]> git.ipfire.org Git - thirdparty/iptables.git/commit
configure: Determine if musl is used for build
authorJoshua Lant <joshualant@googlemail.com>
Wed, 28 Aug 2024 12:47:31 +0000 (13:47 +0100)
committerPhil Sutter <phil@nwl.cc>
Thu, 29 Aug 2024 12:07:35 +0000 (14:07 +0200)
commit76fce22826f8e860b5eb5b5a2463040c17ff85da
tree4d6418471f7ea1dc89980372c0114062e1b37fa7
parente1496f52699b11569a09603765caeca8a4aed93f
configure: Determine if musl is used for build

Error compiling with musl-libc:
The commit hash 810f8568f44f5863c2350a39f4f5c8d60f762958
introduces the netinet/ether.h header into xtables.h, which causes an error due
to the redefinition of the ethhdr struct, defined in linux/if_ether.h and
netinet/ether.h. This is fixed by the inclusion of -D__UAPI_DEF_ETHHDR=0 in
CFLAGS for musl. Automatically check for this macro, since it is defined
in musl but not in glibc.

Signed-off-by: Joshua Lant joshualant@gmail.com
Signed-off-by: Phil Sutter <phil@nwl.cc>
configure.ac