aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2010-05-19 09:05:10 +0000
committerFlorian Fainelli <florian@openwrt.org>2010-05-19 09:05:10 +0000
commit528a24ebe99d6ca3e5c9b5b1ec56286febaa5d68 (patch)
tree4df1df166f17095e10bfd07d4e5277b687a6555c /toolchain
parent390b2e6dcaf1b3a5f0ef17c1c0282f8d8645e500 (diff)
downloadupstream-528a24ebe99d6ca3e5c9b5b1ec56286febaa5d68.tar.gz
upstream-528a24ebe99d6ca3e5c9b5b1ec56286febaa5d68.tar.bz2
upstream-528a24ebe99d6ca3e5c9b5b1ec56286febaa5d68.zip
[toolchain] add upstream uclibc 0.9.31 patch to fix fcntl64 on 64-bits targets
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21504 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/uClibc/patches-0.9.31/903-fcntl64_fix.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches-0.9.31/903-fcntl64_fix.patch b/toolchain/uClibc/patches-0.9.31/903-fcntl64_fix.patch
new file mode 100644
index 0000000000..8bb01a6260
--- /dev/null
+++ b/toolchain/uClibc/patches-0.9.31/903-fcntl64_fix.patch
@@ -0,0 +1,26 @@
+64 bit targets often don't have a separate fcntl64() system call, because they don't need one.
+
+Signed-off-by: Rob Landley <rob at landley.net>
+
+--- uClibc/include/fcntl.h 2010-04-02 10:34:27.000000000 -0500
++++ uClibc.bak/include/fcntl.h 2010-05-16 04:54:10.000000000 -0500
+@@ -73,7 +73,7 @@
+
+ This function is a cancellation point and therefore not marked with
+ __THROW. */
+-#ifndef __USE_FILE_OFFSET64
++#if !defined(__USE_FILE_OFFSET64) || defined(__LP64__)
+ extern int fcntl (int __fd, int __cmd, ...);
+ libc_hidden_proto(fcntl)
+ #else
+@@ -83,7 +83,7 @@
+ # define fcntl fcntl64
+ # endif
+ #endif
+-#ifdef __USE_LARGEFILE64
++#if defined(__USE_LARGEFILE64) && !defined(__LP64__)
+ extern int fcntl64 (int __fd, int __cmd, ...);
+ libc_hidden_proto(fcntl64)
+ #endif
+
+--