summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2003-11-16 04:50:49 +0000
committerManuel Novoa III <mjn3@codepoet.org>2003-11-16 04:50:49 +0000
commitfd7ec01d623badde0f36dce9e898eadb7b92543a (patch)
tree0ec1db992d4b6c6c0278b75040a01db893069c84 /libc/sysdeps/linux
parent85bfb82ad8457167b83c1f5788c30407fbf2c9a7 (diff)
Fix a build problem when using 2.2.x kernel headers.
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 0f1b29152..242864c13 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -699,6 +699,9 @@ int __libc_fcntl(int fd, int cmd, ...)
return(__syscall_fcntl(fd, cmd, arg));
}
weak_alias(__libc_fcntl, fcntl)
+#if ! defined __NR_fcntl64 && defined __UCLIBC_HAS_LFS__
+weak_alias(__libc_fcntl, fcntl64);
+#endif
#endif
//#define __NR_mpx 56
@@ -2230,10 +2233,6 @@ _syscall3(int, madvise, void*, __addr, size_t, __len, int, __advice);
#define __NR___syscall_fcntl64 __NR_fcntl64
static inline
_syscall3(int, __syscall_fcntl64, int, fd, int, cmd, long, arg);
-#else
-#define __syscall_fcntl64 __syscall_fcntl
-extern int __syscall_fcntl(int fd, int cmd, ...);
-#endif
int __libc_fcntl64(int fd, int cmd, ...)
{
long arg;
@@ -2245,6 +2244,7 @@ int __libc_fcntl64(int fd, int cmd, ...)
}
weak_alias(__libc_fcntl64, fcntl64)
#endif
+#endif
//#define __NR_security 223 /* syscall for security modules */
//#define __NR_gettid 224