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.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -52,7 +52,7 @@ · 51 unmodified lines | ||
| 52 | 52 | #if defined(__GLIBC__) |
| 53 | 53 | |
| 54 | 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 | 57 | /* GLIBC headers included first so don't define anything |
| 58 | 58 | * that would already be defined. */ |