aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2016-03-10 19:10:48 +0000
committerJohn Crispin <john@openwrt.org>2016-03-10 19:10:48 +0000
commitb2348e69ad1d228d4ac32f5a19246439d9960d9b (patch)
tree60702d4fbae37d0fc9e8f897ec6e6e0cd2f7c727 /tools
parent346b1905fbafda6a9857232a25597bfcc8f1db43 (diff)
downloadupstream-b2348e69ad1d228d4ac32f5a19246439d9960d9b.tar.gz
upstream-b2348e69ad1d228d4ac32f5a19246439d9960d9b.tar.bz2
upstream-b2348e69ad1d228d4ac32f5a19246439d9960d9b.zip
tools/flock: fix compile on Alpine Linux
fixes build errors: src/flock.c:208:34: error: 'O_NOCTTY' undeclared (first use in this function) fd = open(filename, O_RDONLY|O_NOCTTY|O_CREAT, 0666); src/flock.c:208:43: error: 'O_CREAT' undeclared (first use in this function) fd = open(filename, O_RDONLY|O_NOCTTY|O_CREAT, 0666); Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> SVN-Revision: 48978
Diffstat (limited to 'tools')
-rw-r--r--tools/flock/src/flock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/flock/src/flock.c b/tools/flock/src/flock.c
index 13baec46ca..3ac3a4bebc 100644
--- a/tools/flock/src/flock.c
+++ b/tools/flock/src/flock.c
@@ -39,6 +39,7 @@
#include <sys/file.h>
#include <sys/time.h>
#include <sys/wait.h>
+#include <fcntl.h>
#define PACKAGE_STRING "util-linux-ng 2.18"
#define _(x) (x)