[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1463671589-21327-1-git-send-email-nicolas.dichtel@6wind.com>
Date: Thu, 19 May 2016 17:26:29 +0200
From: Nicolas Dichtel <nicolas.dichtel@...nd.com>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org,
Nicolas Dichtel <nicolas.dichtel@...nd.com>,
Jan Engelhardt <jengelh@...i.de>,
Josh Boyer <jwboyer@...oraproject.org>,
Stephen Hemminger <shemming@...cade.com>,
Waldemar Brodkorb <mail@...demar-brodkorb.de>,
Gabriel Laskar <gabriel@....epita.fr>,
Mikko Rapeli <mikko.rapeli@....fi>
Subject: [PATCH net] uapi glibc compat: fix compilation when !__USE_MISC in glibc
These structures are defined only if __USE_MISC is set in glibc net/if.h
headers, ie when _BSD_SOURCE or _SVID_SOURCE are defined.
CC: Jan Engelhardt <jengelh@...i.de>
CC: Josh Boyer <jwboyer@...oraproject.org>
CC: Stephen Hemminger <shemming@...cade.com>
CC: Waldemar Brodkorb <mail@...demar-brodkorb.de>
CC: Gabriel Laskar <gabriel@....epita.fr>
CC: Mikko Rapeli <mikko.rapeli@....fi>
Fixes: 4a91cb61bb99 ("uapi glibc compat: fix compile errors when glibc net/if.h included before linux/if.h")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@...nd.com>
---
include/uapi/linux/libc-compat.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/uapi/linux/libc-compat.h b/include/uapi/linux/libc-compat.h
index d5e38c73377c..e4f048ee7043 100644
--- a/include/uapi/linux/libc-compat.h
+++ b/include/uapi/linux/libc-compat.h
@@ -52,7 +52,7 @@
#if defined(__GLIBC__)
/* Coordinate with glibc net/if.h header. */
-#if defined(_NET_IF_H)
+#if defined(_NET_IF_H) && defined(__USE_MISC)
/* GLIBC headers included first so don't define anything
* that would already be defined. */
--
2.8.1
Powered by blists - more mailing lists