From 486f854f6aa9c13e5e43df547774dbe26e0beef8 Mon Sep 17 00:00:00 2001 From: Kurt Van Dijck Date: Thu, 26 Sep 2019 09:21:02 +0200 Subject: [PATCH] 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 --- pppd/sys-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2