uapi glibc compat: fix compilation when !__USE_MISC in glibc
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Thu, 19 May 2016 15:26:29 +0000 (17:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 May 2016 23:57:22 +0000 (19:57 -0400)
commitf0a3fdca794d1e68ae284ef4caefe681f7c18e89
tree2bd6f8189b1d966f0b5eae43074989a15c0f47b8
parente5aed006be918af163eb397e45aa5ea6cefd5e01
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@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: 4a91cb61bb99 ("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>
include/uapi/linux/libc-compat.h