summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-04-09 17:33:17 +0000
committerEric Andersen <andersen@codepoet.org>2002-04-09 17:33:17 +0000
commitbf9b41aac43ec4fa8a03e3bd4914c6631d4d84d3 (patch)
tree4e1e98c83f3dc30cd57f9911b75ec10b1625afae /libc/sysdeps/linux
parent920438d85f68b1979ebedfb1e84b1928ca14a47b (diff)
Fixup __USE_FILE_OFFSET64
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/statfix64.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/common/statfix64.h b/libc/sysdeps/linux/common/statfix64.h
index 8e3c925b3..8d6a86a01 100644
--- a/libc/sysdeps/linux/common/statfix64.h
+++ b/libc/sysdeps/linux/common/statfix64.h
@@ -5,13 +5,15 @@
#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64
#undef _FILE_OFFSET_BITS
-#define _FILE_OFFSET_BITS 64
-#endif
-#ifndef __USE_FILE_OFFSET64
-# define __USE_FILE_OFFSET64 1
+#define _FILE_OFFSET_BITS 64
#endif
#ifndef __USE_LARGEFILE64
-# define __USE_LARGEFILE64 1
+# define __USE_LARGEFILE64 1
+#endif
+/* We absolutely do _NOT_ want interfaces silently
+ * * renamed under us or very bad things will happen... */
+#ifdef __USE_FILE_OFFSET64
+# undef __USE_FILE_OFFSET64
#endif
#ifdef __UCLIBC_HAVE_LFS__