OSDN Git Service

Make use of fcntl64 syscall if possible
authorPeter S. Mazinger <ps.m@gmx.net>
Tue, 25 Oct 2005 19:52:09 +0000 (19:52 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Tue, 25 Oct 2005 19:52:09 +0000 (19:52 -0000)
libc/misc/file/lockf64.c

index 327707a..5638d69 100644 (file)
 #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