tools/flock: fix compile on Alpine Linux
authorJohn Crispin <john@openwrt.org>
Thu, 10 Mar 2016 19:10:48 +0000 (19:10 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 10 Mar 2016 19:10:48 +0000 (19:10 +0000)
commita8fc674cc136b5b96400fdd073236c2b3c6158a2
tree4b4f6398f6a298f117cacf0c3d44923202585b85
parent9046cd42f929fd2e6d85742527f5ade010154401
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
tools/flock/src/flock.c