History

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.

Nicolas Dichtel committed 10 years ago

Commit f0a3fdc1 parent e5aed001 file · +1 −1Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/libc-compat.h+1−1
@@ -52,7 +52,7 @@ · 51 unmodified lines
5252 #if defined(__GLIBC__)
5353
5454 /* Coordinate with glibc net/if.h header. */
55−#if defined(_NET_IF_H)
55+#if defined(_NET_IF_H) && defined(__USE_MISC)
5656
5757 /* GLIBC headers included first so don't define anything
5858 * that would already be defined. */