summaryrefslogtreecommitdiff
path: root/libc/misc/file
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-10-25 19:52:09 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-10-25 19:52:09 +0000
commit7ce8f67d27885ea6b1cba2c43e5edc9f1dc17f0f (patch)
tree0f29f8d76ed8ce0cb597a32be35061023b0b3082 /libc/misc/file
parent95927614a8860698c0e6be26b97e31114793d526 (diff)
Make use of fcntl64 syscall if possible
Diffstat (limited to 'libc/misc/file')
-rw-r--r--libc/misc/file/lockf64.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/misc/file/lockf64.c b/libc/misc/file/lockf64.c
index 327707ac8..5638d6938 100644
--- a/libc/misc/file/lockf64.c
+++ b/libc/misc/file/lockf64.c
@@ -38,8 +38,10 @@
#include <fcntl.h>
#include <errno.h>
#include <string.h>
+#include <sys/syscall.h>
#ifdef __NR_fcntl64
+extern int fcntl64 (int fd, int cmd, ...);
#define flock flock64
#define fcntl fcntl64
#define F_GETLK F_GETLK64