From patchwork Wed Jul 6 20:39:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 13680 Received: (qmail 30242 invoked by alias); 6 Jul 2016 20:39:21 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 30223 invoked by uid 89); 6 Jul 2016 20:39:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Hx-languages-length:1128, inh, H*MI:4007, inet X-HELO: hall.aurel32.net From: Aurelien Jarno To: libc-alpha@sourceware.org Cc: Aurelien Jarno Subject: [PATCH] Define __USE_KERNEL_IPV6_DEFS macro for non-Linux kernels Date: Wed, 6 Jul 2016 22:39:04 +0200 Message-Id: <1467837544-4007-1-git-send-email-aurelien@aurel32.net> 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. --- ChangeLog | 4 ++++ bits/in.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 690012c..6ffcee3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-07-06 Aurelien Jarno + + * bits/in.h (__USE_KERNEL_IPV6_DEFS): Define to 0. + 2016-07-06 Stefan Liebler * sysdeps/s390/linkmap.h (struct link_map_machine): diff --git a/bits/in.h b/bits/in.h index d517115..7dc93c1 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