summary refs log tree commit diff
path: root/sysdeps/unix/sysv
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2012-10-22 16:23:20 +0200
committerAndreas Jaeger <aj@suse.de>2012-10-22 16:23:20 +0200
commit2a0e2669f902dc574e70f5473f7c165d55b49311 (patch)
treee58ef428a5ba8da19def07b2d58d3c197bb5f7c1 /sysdeps/unix/sysv
parent7597ceba89e8969c8e7f603221293b2b533f1943 (diff)
downloadglibc-2a0e2669f902dc574e70f5473f7c165d55b49311.tar.gz
glibc-2a0e2669f902dc574e70f5473f7c165d55b49311.tar.xz
glibc-2a0e2669f902dc574e70f5473f7c165d55b49311.zip
Always define __O_LARGEFILE
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r--sysdeps/unix/sysv/linux/s390/bits/fcntl.h10
-rw-r--r--sysdeps/unix/sysv/linux/sparc/bits/fcntl.h11
2 files changed, 8 insertions, 13 deletions
diff --git a/sysdeps/unix/sysv/linux/s390/bits/fcntl.h b/sysdeps/unix/sysv/linux/s390/bits/fcntl.h
index 6f53fbc0b5..ecf1baf8b9 100644
--- a/sysdeps/unix/sysv/linux/s390/bits/fcntl.h
+++ b/sysdeps/unix/sysv/linux/s390/bits/fcntl.h
@@ -22,13 +22,11 @@
 
 #include <bits/wordsize.h>
 
-#ifdef __USE_LARGEFILE64
-# if __WORDSIZE == 64
+#if __WORDSIZE == 64
 /* Not necessary, files are always with 64bit off_t.  */
-#  define __O_LARGEFILE	0
-# else
-#  define __O_LARGEFILE	0100000
-# endif
+# define __O_LARGEFILE	0
+#else
+# define __O_LARGEFILE	0100000
 #endif
 
 /* Values for the second argument to `fcntl'.  */
diff --git a/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h b/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h
index b8496a9072..0f4bf76490 100644
--- a/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h
+++ b/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h
@@ -39,14 +39,11 @@
 #define __O_DIRECT	0x100000 /* direct disk access hint */
 #define __O_NOATIME	0x200000 /* Do not set atime.  */
 #define __O_PATH	0x1000000 /* Resolve pathname but do not open file.  */
-#endif
 
-#ifdef __USE_LARGEFILE64
-# if __WORDSIZE == 64
-#  define __O_LARGEFILE	0
-# else
-#  define __O_LARGEFILE	0x40000
-# endif
+#if __WORDSIZE == 64
+# define __O_LARGEFILE	0
+#else
+# define __O_LARGEFILE	0x40000
 #endif
 
 #define __O_DSYNC	0x2000	/* Synchronize data.  */