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
52#if defined(__GLIBC__)52#if defined(__GLIBC__)
53 53
54/* Coordinate with glibc net/if.h header. */54/* Coordinate with glibc net/if.h header. */
55#if defined(_NET_IF_H)55#if defined(_NET_IF_H) && defined(__USE_MISC)
56 56
57/* GLIBC headers included first so don't define anything57/* GLIBC headers included first so don't define anything
58 * that would already be defined. */58 * that would already be defined. */