From 0e4cf8c30079e273e9a79bee1f18c133927650a6 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 17 Jan 2002 15:47:04 +0000 Subject: Enable fcntl64, and fix fcntl when large fils is enabled. --- include/fcntl.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/fcntl.h') 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, -- cgit v1.2.3