[git commit 0.9.31] Fix fcntl64 for 64 bit targets.
Rob Landley
rob at landley.net
Tue Jun 14 16:48:19 UTC 2011
commit: http://git.uclibc.org/uClibc/commit/?id=80a6c6d96c6201146c4c9d988d16e14243c5664f
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0.9.31
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>
Signed-off-by: Austin Foxley <austinf at cetoncorp.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
include/fcntl.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
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
--
1.7.3.4
More information about the uClibc-cvs
mailing list