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: 645483 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rlCKV3nDYz9s9x for ; Thu, 7 Jul 2016 06:39:26 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=JsbOGJz2; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=q0ehIMH044hSzHf3d7Ny3EMfVF3zhoD3DWJLhGNWaiQuYgEc4p0lO A9UHkREWpET0OiRDbKPbPweF/vPqj6hQ5ArlNRH0Gq4LIwgLF8tpByB0r/1/3kek +5MsROans+MkubDhFutqwMORpyJ3hxgSsV76dhZcCO52j3thk+6oPg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=GGp55XnuZzaSERC1ErUkS8GcJqw=; b=JsbOGJz2n6vFpeNdmMcHrEQj8OoY OBDv4SUup8gxOybnlx9KrIZDGY1OkEj2Iq9JXF0FElvXLLpUCSoOl2dbwfKGdoHY 1+knZo6+l2mu/oSE8xCmNb4kiLQ6tK2r5MAhjC4j3ll5j/t281DJs2l4E3ow+V/Y +aNGJhQ9p0PSohg= 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