[uClibc-cvs] uClibc/libc/sysdeps/linux/common syscalls.c, 1.120, 1.121

Manuel Novoa III mjn3 at uclibc.org
Sun Nov 16 04:50:53 UTC 2003


Update of /var/cvs/uClibc/libc/sysdeps/linux/common
In directory winder:/tmp/cvs-serv7369

Modified Files:
	syscalls.c 
Log Message:
Fix a build problem when using 2.2.x kernel headers.


Index: syscalls.c
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/common/syscalls.c,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -d -r1.120 -r1.121
--- syscalls.c	12 Nov 2003 20:50:02 -0000	1.120
+++ syscalls.c	16 Nov 2003 04:50:49 -0000	1.121
@@ -699,6 +699,9 @@
 	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 @@
 #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 @@
 }
 weak_alias(__libc_fcntl64, fcntl64)
 #endif
+#endif
 
 //#define __NR_security		223	/* syscall for security modules */
 //#define __NR_gettid		224




More information about the uClibc-cvs mailing list