From 3eb9a36aa351ed8a5cc93665985fed2824e1efe5 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Thu, 9 Jun 2011 10:18:05 +0200 Subject: uClibc: bump 0.9.31.x version Signed-off-by: Peter Korsgaard --- ...c-0.9.31.1-fix-fcntl64-for-64-bit-targets.patch | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 toolchain/uClibc/uClibc-0.9.31.1-fix-fcntl64-for-64-bit-targets.patch (limited to 'toolchain/uClibc/uClibc-0.9.31.1-fix-fcntl64-for-64-bit-targets.patch') diff --git a/toolchain/uClibc/uClibc-0.9.31.1-fix-fcntl64-for-64-bit-targets.patch b/toolchain/uClibc/uClibc-0.9.31.1-fix-fcntl64-for-64-bit-targets.patch new file mode 100644 index 000000000..763bfd39d --- /dev/null +++ b/toolchain/uClibc/uClibc-0.9.31.1-fix-fcntl64-for-64-bit-targets.patch @@ -0,0 +1,34 @@ +From 6f1daaaf2d94c1e6184add44eda38b0781b88cf0 Mon Sep 17 00:00:00 2001 +From: Rob Landley +Date: Sun, 16 May 2010 21:41:36 +0000 +Subject: Fix fcntl64 for 64 bit targets. + +64 bit targets often don't have a separate fcntl64() system call, because they don't need one. + +Signed-off-by: Rob Landley +Signed-off-by: Austin Foxley +--- +diff --git a/include/fcntl.h b/include/fcntl.h +index e37073f..3cfb25f 100644 +--- a/include/fcntl.h ++++ b/include/fcntl.h +@@ -73,7 +73,7 @@ __BEGIN_DECLS + + 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 @@ extern int __REDIRECT (fcntl, (int __fd, int __cmd, ...), fcntl64); + # 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 +-- +cgit v0.8.2.1 -- cgit v1.2.3