[uClibc-cvs] svn commit: trunk/uClibc/libc/sysdeps/linux/common
mjn3 at uclibc.org
mjn3 at uclibc.org
Sat Jul 30 14:02:25 UTC 2005
Author: mjn3
Date: 2005-07-30 08:02:24 -0600 (Sat, 30 Jul 2005)
New Revision: 10985
Log:
Check for __NR_fcntl64.
Modified:
trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c
Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c 2005-07-30 09:43:58 UTC (rev 10984)
+++ trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c 2005-07-30 14:02:24 UTC (rev 10985)
@@ -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 @@
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);
More information about the uClibc-cvs
mailing list