瀏覽代碼

Fixup __USE_FILE_OFFSET64

Eric Andersen 23 年之前
父節點
當前提交
bf9b41aac4
共有 1 個文件被更改,包括 7 次插入5 次删除
  1. 7 5
      libc/sysdeps/linux/common/statfix64.h

+ 7 - 5
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__