From: John Crispin Date: Thu, 10 Mar 2016 19:10:48 +0000 (+0000) Subject: tools/flock: fix compile on Alpine Linux X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=a8fc674cc136b5b96400fdd073236c2b3c6158a2 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 SVN-Revision: 48978 --- 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)