summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/fcntl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/fcntl.h b/include/fcntl.h
index 951fd8016..1ab84f2a9 100644
--- a/include/fcntl.h
+++ b/include/fcntl.h
@@ -57,7 +57,16 @@ __BEGIN_DECLS
/* Do the file control operation described by CMD on FD.
The remaining arguments are interpreted depending on CMD. */
+#ifndef __USE_FILE_OFFSET64
extern int fcntl (int __fd, int __cmd, ...) __THROW;
+#else
+# ifdef __REDIRECT
+extern int __REDIRECT (fcntl, (int __fd, int __cmd, ...) __THROW,
+ fcntl64);
+# else
+# define fcntl fcntl64
+# endif
+#endif
/* Open FILE and return a new file descriptor for it, or -1 on error.
OFLAG determines the type of access used. If O_CREAT is on OFLAG,