about summary refs log tree commit diff
path: root/libio/iofopen64.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/iofopen64.c')
-rw-r--r--libio/iofopen64.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libio/iofopen64.c b/libio/iofopen64.c
index 1b1a4877d6..25c79c9b38 100644
--- a/libio/iofopen64.c
+++ b/libio/iofopen64.c
@@ -25,8 +25,12 @@
    in files containing the exception.  */
 
 #include "libioP.h"
+#include <fcntl.h>
 #include <stdlib.h>
 
+/* iofopen.c defines _IO_fopen64/fopen64 as aliases if O_LARGEFILE==0.  */
+#if !defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)
+
 _IO_FILE *
 _IO_fopen64 (filename, mode)
      const char *filename;
@@ -43,3 +47,5 @@ _IO_fopen64 (filename, mode)
 #ifdef weak_alias
 weak_alias (_IO_fopen64, fopen64)
 #endif
+
+#endif