From: Roy Marples Date: Tue, 1 Oct 2024 09:05:32 +0000 (+0100) Subject: linux: Only include linux/if.h if libc does not define IFF_DORMANT X-Git-Tag: v10.1.0~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=80c010a3bcd1c5a8a756253e7886478bbb6f3fce;p=thirdparty%2Fdhcpcd.git linux: Only include linux/if.h if libc does not define IFF_DORMANT Hopefully fixes #373. --- diff --git a/src/if-linux.c b/src/if-linux.c index 682f935f..ef73b305 100644 --- a/src/if-linux.c +++ b/src/if-linux.c @@ -60,8 +60,10 @@ #include #endif +#ifndef IFF_DORMANT /* Inlcude this *after* net/if.h so we get IFF_DORMANT */ #include +#endif #include #include