Mercurial > hg > aboriginal
changeset 1087:92dff880e322
Fix 64 bit targets with uClibc 0.9.31.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 21 May 2010 21:27:34 -0500 |
parents | 59281941172b |
children | 68463eff052a |
files | sources/patches/uClibc-fix-fcntl64.patch |
diffstat | 1 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/patches/uClibc-fix-fcntl64.patch Fri May 21 21:27:34 2010 -0500 @@ -0,0 +1,20 @@ +--- 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