3319f98de981c956531023e4f1a0a80c1f49ba97
[openwrt-10.03/.git] / toolchain / uClibc / patches-0.9.28 / 302-fix-__libc_fcntl64-varargs-prototype.patch
1 Subject: [PATCH] Fix __libc_fcntl64 prototype in __syscall_fcntl.c
2
3 __libc_fcntl64 is a varargs function and should be declared as such.
4 Otherwise, the gcc compiler for AVR32, and perhaps other architectures,
5 will use the wrong calling convention.
6
7 ---
8
9  libc/sysdeps/linux/common/__syscall_fcntl.c |    2 +-
10  1 file changed, 1 insertion(+), 1 deletion(-)
11
12 Index: uClibc-0.9.28/libc/sysdeps/linux/common/__syscall_fcntl.c
13 ===================================================================
14 --- uClibc-0.9.28.orig/libc/sysdeps/linux/common/__syscall_fcntl.c      2006-02-07 16:48:32.000000000 +0100
15 +++ uClibc-0.9.28/libc/sysdeps/linux/common/__syscall_fcntl.c   2006-02-07 17:19:09.000000000 +0100
16 @@ -12,7 +12,7 @@
17  #include <fcntl.h>
18  
19  #if defined __UCLIBC_HAS_LFS__ && defined __NR_fcntl64
20 -extern int __libc_fcntl64(int fd, int cmd, long arg);
21 +extern int __libc_fcntl64(int fd, int cmd, ...);
22  #endif
23  
24  #define __NR___syscall_fcntl __NR_fcntl