From b2348e69ad1d228d4ac32f5a19246439d9960d9b Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 10 Mar 2016 19:10:48 +0000 Subject: [PATCH] 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 --- 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 13baec46ca4..3ac3a4bebce 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) -- 2.30.2