From: Aurelien Jarno Date: Fri, 8 Jul 2016 09:24:34 +0000 (+0200) Subject: Define __USE_KERNEL_IPV6_DEFS macro for non-Linux kernels X-Git-Tag: glibc-2.24~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=be4830bf94e1159b00c4cc97c084c6e4765a61ae;p=thirdparty%2Fglibc.git Define __USE_KERNEL_IPV6_DEFS macro for non-Linux kernels Commit 1c1e7fb6 changed the __USE_KERNEL_IPV6_DEFS tests from 'ifdef' to 'if'. As inet/netinet.in.h is a generic file, this causes a warning on non-Linux kernels (for example Hurd). To fix that define it in the generic bits/in.h file. Changelog: * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0. --- diff --git a/ChangeLog b/ChangeLog index a7a875cf183..e0717516d97 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-07-08 Aurelien Jarno + + * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0. + 2016-07-08 Aurelien Jarno [BZ #20240] diff --git a/bits/in.h b/bits/in.h index d517115bb2b..7dc93c192f6 100644 --- a/bits/in.h +++ b/bits/in.h @@ -21,6 +21,9 @@ # error "Never use directly; include instead." #endif +/* This is the generic version, do not assume a linux-based kernel. */ +#define __USE_KERNEL_IPV6_DEFS 0 + /* To select the IP level. */ #define SOL_IP 0