]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Linux: fix compile on old ones
authorRoy Marples <roy@marples.name>
Wed, 10 Jun 2020 06:13:21 +0000 (07:13 +0100)
committerRoy Marples <roy@marples.name>
Wed, 10 Jun 2020 06:13:21 +0000 (07:13 +0100)
src/if.c

index c932738435fdfbde971ce0d92beacbf1e3e6581d..9e158a9ccaae15b2cd8320649941a0ae1cb26f1d 100644 (file)
--- a/src/if.c
+++ b/src/if.c
@@ -31,6 +31,8 @@
 #include <sys/ioctl.h>
 #include <sys/socket.h>
 
+#include <fcntl.h> /* Needs to be here for old Linux */
+
 #include "config.h"
 
 #include <net/if.h>
@@ -54,7 +56,6 @@
 #include <errno.h>
 #include <ifaddrs.h>
 #include <inttypes.h>
-#include <fcntl.h>
 #include <fnmatch.h>
 #include <stddef.h>
 #include <stdio.h>