summaryrefslogtreecommitdiffstats
path: root/src/if.c
diff options
context:
space:
mode:
authorPetr Gotthard <petr.gotthard@advantech-bb.cz>2020-02-05 15:35:44 +0000
committerRoy Marples <roy@marples.name>2020-02-05 15:37:27 +0000
commit2bf668dceed3fbea9f596afc4f90d829497401b3 (patch)
tree0e87b20aab3ca207fe5ee148c2f8a7516ee056aa /src/if.c
parentb6b8910d23cd15bb0d7bf3b3b31ada3899db2f6f (diff)
downloaddhcpcd-2bf668dceed3fbea9f596afc4f90d829497401b3.tar.xz
compat: Fix a typo in pidfile when O_CLOEXEC is not defined
While here, include fcntl.h in if.c for older environments.
Diffstat (limited to 'src/if.c')
-rw-r--r--src/if.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/if.c b/src/if.c
index 81e07827..2172ec4e 100644
--- a/src/if.c
+++ b/src/if.c
@@ -54,6 +54,7 @@
#include <errno.h>
#include <ifaddrs.h>
#include <inttypes.h>
+#include <fcntl.h>
#include <fnmatch.h>
#include <stddef.h>
#include <stdio.h>