summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2005-07-30 14:02:24 +0000
committerManuel Novoa III <mjn3@codepoet.org>2005-07-30 14:02:24 +0000
commit869198ab53be17c50926416e76ff0c63cefbd09f (patch)
tree2a61f941ecf6b1968cf3a66f834dac9f391305e6 /libc
parentb0a7157456eb4a4efde25e3efbc1beb878612c78 (diff)
Check for __NR_fcntl64.
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/__syscall_fcntl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/__syscall_fcntl.c b/libc/sysdeps/linux/common/__syscall_fcntl.c
index 0a5812976..e4257b0c8 100644
--- a/libc/sysdeps/linux/common/__syscall_fcntl.c
+++ b/libc/sysdeps/linux/common/__syscall_fcntl.c
@@ -11,7 +11,7 @@
#include <stdarg.h>
#include <fcntl.h>
-#ifdef __UCLIBC_HAS_LFS__
+#if defined __UCLIBC_HAS_LFS__ && defined __NR_fcntl64
extern int __libc_fcntl64(int fd, int cmd, long arg);
#endif
@@ -29,7 +29,7 @@ int __libc_fcntl(int fd, int cmd, ...)
va_end(list);
if (cmd == F_GETLK64 || cmd == F_SETLK64 || cmd == F_SETLKW64) {
-#ifdef __UCLIBC_HAS_LFS__
+#if defined __UCLIBC_HAS_LFS__ && defined __NR_fcntl64
return __libc_fcntl64(fd, cmd, arg);
#else
__set_errno(ENOSYS);