From: Kurt Van Dijck Date: Thu, 26 Sep 2019 07:21:02 +0000 (+0200) Subject: pppd: Fix GLIBC version test for non-glibc toolchains X-Git-Tag: ppp-2.4.8~21 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=486f854f6aa9c13e5e43df547774dbe26e0beef8 pppd: Fix GLIBC version test for non-glibc toolchains Non-glibc toolchains have their include files arranged more similar to newer glibc's than to older. Signed-off-by: Kurt Van Dijck Signed-off-by: Paul Mackerras --- diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c index 761aafc..eedcb53 100644 --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -102,7 +102,7 @@ #define MAX_ADDR_LEN 7 #endif -#if __GLIBC__ >= 2 +#if !defined(__GLIBC__) || __GLIBC__ >= 2 #include /* glibc 2 conflicts with linux/types.h */ #include #include