mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
uapi glibc compat: fix compilation when !__USE_MISC in glibc
[ Upstream commitf0a3fdca79] 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@inai.de> CC: Josh Boyer <jwboyer@fedoraproject.org> CC: Stephen Hemminger <shemming@brocade.com> CC: Waldemar Brodkorb <mail@waldemar-brodkorb.de> CC: Gabriel Laskar <gabriel@lse.epita.fr> CC: Mikko Rapeli <mikko.rapeli@iki.fi> Fixes:4a91cb61bb("uapi glibc compat: fix compile errors when glibc net/if.h included before linux/if.h") Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ab1f253ddc
commit
f5f16bf66d
@@ -52,7 +52,7 @@
|
|||||||
#if defined(__GLIBC__)
|
#if defined(__GLIBC__)
|
||||||
|
|
||||||
/* Coordinate with glibc net/if.h header. */
|
/* 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
|
/* GLIBC headers included first so don't define anything
|
||||||
* that would already be defined. */
|
* that would already be defined. */
|
||||||
|
|||||||
Reference in New Issue
Block a user