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.lede-project.org./?a=commitdiff_plain;h=b2348e69ad1d228d4ac32f5a19246439d9960d9b;p=openwrt%2Fstaging%2Fkaloz.git 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)