OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9592761
)
Make use of fcntl64 syscall if possible
author
Peter S. Mazinger
<ps.m@gmx.net>
Tue, 25 Oct 2005 19:52:09 +0000
(19:52 -0000)
committer
Peter S. Mazinger
<ps.m@gmx.net>
Tue, 25 Oct 2005 19:52:09 +0000
(19:52 -0000)
libc/misc/file/lockf64.c
patch
|
blob
|
history
diff --git
a/libc/misc/file/lockf64.c
b/libc/misc/file/lockf64.c
index
327707a
..
5638d69
100644
(file)
--- 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