]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
linux: Only include linux/if.h if libc does not define IFF_DORMANT
authorRoy Marples <roy@marples.name>
Tue, 1 Oct 2024 09:05:32 +0000 (10:05 +0100)
committerRoy Marples <roy@marples.name>
Tue, 1 Oct 2024 09:05:32 +0000 (10:05 +0100)
Hopefully fixes #373.

src/if-linux.c

index 682f935fe56c86c223b6e0ed0b6a6e6566d15aff..ef73b3051d70a3c150ba719e05f8f8e962ea946c 100644 (file)
 #include <linux/if_arp.h>
 #endif
 
+#ifndef IFF_DORMANT
 /* Inlcude this *after* net/if.h so we get IFF_DORMANT */
 #include <linux/if.h>
+#endif
 
 #include <dirent.h>
 #include <errno.h>