summaryrefslogtreecommitdiffstats
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:18:29 +0100
commit6fdd1b8b589f8cec8b017e4b4dfff162730748f0 (patch)
treead13dd55bd047e9f519582616f8393559d61c4d8
parent895d69067f076ffe9a8cddc37bb5adc32bfe035e (diff)
downloaddhcpcd-6fdd1b8b589f8cec8b017e4b4dfff162730748f0.tar.xz
Linux: fix compile on old ones
-rw-r--r--src/if.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/if.c b/src/if.c
index 76df1e16..315df47c 100644
--- a/src/if.c
+++ b/src/if.c
@@ -32,6 +32,8 @@
#include <sys/socket.h>
#include <syslog.h>
+#include <fcntl.h> /* Needs to be here for old Linux */
+
#include "config.h"
#include <net/if.h>
@@ -55,7 +57,6 @@
#include <errno.h>
#include <ifaddrs.h>
#include <inttypes.h>
-#include <fcntl.h>
#include <fnmatch.h>
#include <stddef.h>
#include <stdio.h>