summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/statfix64.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/statfix64.h')
-rw-r--r--libc/sysdeps/linux/common/statfix64.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/statfix64.h b/libc/sysdeps/linux/common/statfix64.h
index acf9e8440..8e3c925b3 100644
--- a/libc/sysdeps/linux/common/statfix64.h
+++ b/libc/sysdeps/linux/common/statfix64.h
@@ -3,9 +3,16 @@
#include <features.h>
+#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64
+#undef _FILE_OFFSET_BITS
#define _FILE_OFFSET_BITS 64
-#define __USE_FILE_OFFSET64
-#define __USE_LARGEFILE64
+#endif
+#ifndef __USE_FILE_OFFSET64
+# define __USE_FILE_OFFSET64 1
+#endif
+#ifndef __USE_LARGEFILE64
+# define __USE_LARGEFILE64 1
+#endif
#ifdef __UCLIBC_HAVE_LFS__