From: blogic Date: Thu, 10 Mar 2016 19:10:48 +0000 (+0000) Subject: tools/flock: fix compile on Alpine Linux X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=commitdiff_plain;h=9e51fef44cebadc36cb60385c00fcb44e890176d;ds=sidebyside 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48978 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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 #include #include +#include #define PACKAGE_STRING "util-linux-ng 2.18" #define _(x) (x)