Browse Source

Check for __NR_fcntl64.

Manuel Novoa III 20 years ago
parent
commit
869198ab53
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libc/sysdeps/linux/common/__syscall_fcntl.c

+ 2 - 2
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);