diff options
author | John Crispin <john@openwrt.org> | 2016-03-10 19:10:48 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2016-03-10 19:10:48 +0000 |
commit | b2348e69ad1d228d4ac32f5a19246439d9960d9b (patch) | |
tree | 60702d4fbae37d0fc9e8f897ec6e6e0cd2f7c727 /tools | |
parent | 346b1905fbafda6a9857232a25597bfcc8f1db43 (diff) | |
download | mtk-20170518-b2348e69ad1d228d4ac32f5a19246439d9960d9b.zip mtk-20170518-b2348e69ad1d228d4ac32f5a19246439d9960d9b.tar.gz mtk-20170518-b2348e69ad1d228d4ac32f5a19246439d9960d9b.tar.bz2 |
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 <dirkneukirchen@web.de>
SVN-Revision: 48978
Diffstat (limited to 'tools')
-rw-r--r-- | tools/flock/src/flock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/flock/src/flock.c b/tools/flock/src/flock.c index 13baec4..3ac3a4b 100644 --- a/tools/flock/src/flock.c +++ b/tools/flock/src/flock.c @@ -39,6 +39,7 @@ #include <sys/file.h> #include <sys/time.h> #include <sys/wait.h> +#include <fcntl.h> #define PACKAGE_STRING "util-linux-ng 2.18" #define _(x) (x) |