pppd: Fix GLIBC version test for non-glibc toolchains
authorKurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Thu, 26 Sep 2019 07:21:02 +0000 (09:21 +0200)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 1 Oct 2019 22:47:40 +0000 (08:47 +1000)
Non-glibc toolchains have their include files arranged more similar
to newer glibc's than to older.

Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
pppd/sys-linux.c

index 761aafc88f92530b27264d4bfa87215b66ff194c..eedcb53b06923d3e39459551b0a2f594d99f8b47 100644 (file)
 #define MAX_ADDR_LEN 7
 #endif
 
-#if __GLIBC__ >= 2
+#if !defined(__GLIBC__) || __GLIBC__ >= 2
 #include <asm/types.h>         /* glibc 2 conflicts with linux/types.h */
 #include <net/if.h>
 #include <net/if_arp.h>