Ver Fonte

Make use of fcntl64 syscall if possible

Peter S. Mazinger há 18 anos atrás
pai
commit
7ce8f67d27
1 ficheiros alterados com 2 adições e 0 exclusões
  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