Skip to content

Commit

Permalink
tools/flock: fix compile on Alpine Linux
Browse files Browse the repository at this point in the history
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]>

SVN-Revision: 48978
  • Loading branch information
John Crispin committed Mar 10, 2016
1 parent 346b190 commit b2348e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/flock/src/flock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b2348e6

Please sign in to comment.