summaryrefslogtreecommitdiff
path: root/include/features.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/features.h')
-rw-r--r--include/features.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/features.h b/include/features.h
index c94d531e8..46a94f7f4 100644
--- a/include/features.h
+++ b/include/features.h
@@ -176,8 +176,10 @@
# define _XOPEN_SOURCE 600
# undef _XOPEN_SOURCE_EXTENDED
# define _XOPEN_SOURCE_EXTENDED 1
-# undef _LARGEFILE64_SOURCE
-# define _LARGEFILE64_SOURCE 1
+# ifdef __UCLIBC_HAS_LFS__
+# undef _LARGEFILE64_SOURCE
+# define _LARGEFILE64_SOURCE 1
+# endif /* __UCLIBC_HAS_LFS__ */
# undef _BSD_SOURCE
# define _BSD_SOURCE 1
# undef _SVID_SOURCE