From 2ee4da08c71dccd402b8d7890f872799b49c1cb2 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 10 Mar 2016 19:10:48 +0000 Subject: 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 --- tools/flock/src/flock.c | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3