summaryrefslogtreecommitdiffstats
path: root/src/if.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-06-10 07:13:21 +0100
committerRoy Marples <roy@marples.name>2020-06-10 07:13:21 +0100
commitcb2d1a315c345425ff3858ae087add75db863467 (patch)
treeda5ebc0addcbc0e95d53391e1b7d3e3f8d724b44 /src/if.c
parent465558f429c881d4fe5f818d09c00847e8399c94 (diff)
downloaddhcpcd-cb2d1a315c345425ff3858ae087add75db863467.tar.xz
Linux: fix compile on old ones
Diffstat (limited to 'src/if.c')
-rw-r--r--src/if.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/if.c b/src/if.c
index c9327384..9e158a9c 100644
--- 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>