svn commit: trunk/uClibc: include libc/sysdeps/linux/common/bits
aldot at uclibc.org
aldot at uclibc.org
Wed Nov 29 21:10:04 UTC 2006
Author: aldot
Date: 2006-11-29 13:10:04 -0800 (Wed, 29 Nov 2006)
New Revision: 16731
Log:
- honor __UCLIBC_HAS_LFS__
Modified:
trunk/uClibc/include/features.h
trunk/uClibc/libc/sysdeps/linux/common/bits/posix_opt.h
Changeset:
Modified: trunk/uClibc/include/features.h
===================================================================
--- trunk/uClibc/include/features.h 2006-11-29 21:07:00 UTC (rev 16730)
+++ trunk/uClibc/include/features.h 2006-11-29 21:10:04 UTC (rev 16731)
@@ -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
Modified: trunk/uClibc/libc/sysdeps/linux/common/bits/posix_opt.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/bits/posix_opt.h 2006-11-29 21:07:00 UTC (rev 16730)
+++ trunk/uClibc/libc/sysdeps/linux/common/bits/posix_opt.h 2006-11-29 21:10:04 UTC (rev 16731)
@@ -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
More information about the uClibc-cvs
mailing list