move a few more 2.6.36 config options from ar71xx to generic
[openwrt.git] / toolchain / uClibc / patches-0.9.31 / 903-fcntl64_fix.patch
1 64 bit targets often don't have a separate fcntl64() system call, because they don't need one.
2
3 Signed-off-by: Rob Landley <rob at landley.net>
4
5 --- uClibc/include/fcntl.h 2010-04-02 10:34:27.000000000 -0500
6 +++ uClibc.bak/include/fcntl.h 2010-05-16 04:54:10.000000000 -0500
7 @@ -73,7 +73,7 @@
8
9 This function is a cancellation point and therefore not marked with
10 __THROW. */
11 -#ifndef __USE_FILE_OFFSET64
12 +#if !defined(__USE_FILE_OFFSET64) || defined(__LP64__)
13 extern int fcntl (int __fd, int __cmd, ...);
14 libc_hidden_proto(fcntl)
15 #else
16 @@ -83,7 +83,7 @@
17 # define fcntl fcntl64
18 # endif
19 #endif
20 -#ifdef __USE_LARGEFILE64
21 +#if defined(__USE_LARGEFILE64) && !defined(__LP64__)
22 extern int fcntl64 (int __fd, int __cmd, ...);
23 libc_hidden_proto(fcntl64)
24 #endif
25
26 --
This page took 0.039279 seconds and 5 git commands to generate.