@@ -, +, @@ Support musl libc, remove support for glibc < 2.1 The workarounds for glibc < 2.1 (was released february 1999) break the build with musl libc. It is very unlikely that 2.0 or earlier is still in use, and if so, 1) that's a big security hole 2) code wouldnt compile anyway since noone tested build in the last decade 3) user of it wouldn't expect anyway to get bleeding edge sw built on it, so he would just use the latest version that works for him. Closes #52 --- a/libnet/src/libnet_link_linux.c +++ a/libnet/src/libnet_link_linux.c @@ -30,26 +30,15 @@ #include #include -#if (__GLIBC__) #include #include -#else -#include -#include -#endif #if (HAVE_PACKET_SOCKET) #ifndef SOL_PACKET #define SOL_PACKET 263 #endif /* SOL_PACKET */ -#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1 #include #include /* the L2 protocols */ -#else -#include -#include -#include /* The L2 protocols */ -#endif #endif /* HAVE_PACKET_SOCKET */ #include "../include/libnet.h"