summaryrefslogtreecommitdiff
path: root/include/fcntl.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2010-05-16 16:41:36 -0500
committerAustin Foxley <austinf@cetoncorp.com>2010-05-17 07:12:12 -0700
commit6f1daaaf2d94c1e6184add44eda38b0781b88cf0 (patch)
tree981fbeb10c70a426219e7d813ae0ee39235d4177 /include/fcntl.h
parent2e53dd645d5348f207cec7f8595969dc566c5a55 (diff)
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 <rob@landley.net> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'include/fcntl.h')
-rw-r--r--include/fcntl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fcntl.h b/include/fcntl.h
index e37073fa9..3cfb25fc8 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