diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-09-08 06:31:16 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-09-08 06:31:16 +0000 |
commit | cca2d887a231d9df4a4ac1d45f659054c07b993f (patch) | |
tree | 8c1f7d63ef43324bae6cbce0c1d07f16772b5a14 | |
parent | 8024381ffbe7c79059ed1506b2475f363f8514e0 (diff) |
mjn3 pointed out that my brain was not in gear....
-rw-r--r-- | libc/sysdeps/linux/common/syscalls.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c index 5856ce714..9438c8d7c 100644 --- a/libc/sysdeps/linux/common/syscalls.c +++ b/libc/sysdeps/linux/common/syscalls.c @@ -2074,12 +2074,16 @@ _syscall3(int, madvise, void*, __addr, size_t, __len, int, __advice); //#define __NR_fcntl64 221 #ifdef L___syscall_fcntl64 -#ifdef __UCLIBC_HAS_LFS__ #include <stdarg.h> #include <fcntl.h> +#ifdef __UCLIBC_HAS_LFS__ #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; @@ -2090,9 +2094,6 @@ int __libc_fcntl64(int fd, int cmd, ...) return(__syscall_fcntl64(fd, cmd, arg)); } weak_alias(__libc_fcntl64, fcntl64) -#else -weak_alias(__libc_fcntl64, __libc_fcntl) -#endif #endif //#define __NR_security 223 /* syscall for security modules */ |