Browse Source

Make use of fcntl64 syscall if possible

Peter S. Mazinger 18 years ago
parent
commit
7ce8f67d27
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libc/misc/file/lockf64.c

+ 2 - 0
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