summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-11-29 21:10:04 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-11-29 21:10:04 +0000
commit2c20597657d269d5f61592278d589dd35cd040f2 (patch)
tree7f2c3e8c1070ba76baa51988b0c05915eb81d8eb
parent3d1312ae2ac9161f601fa784af18f083c435d844 (diff)
- honor __UCLIBC_HAS_LFS__
-rw-r--r--include/features.h6
-rw-r--r--libc/sysdeps/linux/common/bits/posix_opt.h2
2 files changed, 6 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
diff --git a/libc/sysdeps/linux/common/bits/posix_opt.h b/libc/sysdeps/linux/common/bits/posix_opt.h
index 92c2d3282..dfe259b7c 100644
--- a/libc/sysdeps/linux/common/bits/posix_opt.h
+++ b/libc/sysdeps/linux/common/bits/posix_opt.h
@@ -96,10 +96,12 @@
/* The LFS support in asynchronous I/O is also available. */
#define _LFS64_ASYNCHRONOUS_IO 1
+#ifdef __UCLIBC_HAS_LFS__
/* The rest of the LFS is also available. */
#define _LFS_LARGEFILE 1
#define _LFS64_LARGEFILE 1
#define _LFS64_STDIO 1
+#endif
/* POSIX shared memory objects are implemented. */
#define _POSIX_SHARED_MEMORY_OBJECTS 200112L