Author: blogic
Date: 2016-03-10 20:10:48 +0100 (Thu, 10 Mar 2016)
New Revision: 48978

Modified:
   trunk/tools/flock/src/flock.c
Log:
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 <[email protected]>

Modified: trunk/tools/flock/src/flock.c
===================================================================
--- trunk/tools/flock/src/flock.c       2016-03-10 19:07:26 UTC (rev 48977)
+++ trunk/tools/flock/src/flock.c       2016-03-10 19:10:48 UTC (rev 48978)
@@ -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)
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to