[git commit master 1/1] nptl: _POSIX_IPV6 depends on UCLIBC_HAS_IPV6

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Wed Aug 4 07:14:15 UTC 2010


commit: http://git.uclibc.org/uClibc/commit/?id=766829d0b8ef0665e044159e3823c181fbfb8175
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 libc/sysdeps/linux/common/bits/posix_opt.h         |    8 ++++++++
 .../nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h  |    8 ++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/libc/sysdeps/linux/common/bits/posix_opt.h b/libc/sysdeps/linux/common/bits/posix_opt.h
index 46d1697..aa40eae 100644
--- a/libc/sysdeps/linux/common/bits/posix_opt.h
+++ b/libc/sysdeps/linux/common/bits/posix_opt.h
@@ -79,8 +79,10 @@
 /* We support user-defined stacks.  */
 #define _POSIX_THREAD_ATTR_STACKADDR	200112L
 
+#ifdef __UCLIBC_HAS_REALTIME__
 /* We support POSIX.1b semaphores.  */
 #define _POSIX_SEMAPHORES	200112L
+#endif
 
 /* Real-time signals are supported.  */
 #define _POSIX_REALTIME_SIGNALS	200112L
@@ -112,8 +114,10 @@
 /* Clock support in threads must be also checked at runtime.  */
 #define _POSIX_THREAD_CPUTIME	0
 
+#ifdef __UCLIBC_HAS_REGEX__
 /* GNU libc provides regular expression handling.  */
 #define _POSIX_REGEXP	1
+#endif
 
 /* Reader/Writer locks are available.  */
 #define _POSIX_READER_WRITER_LOCKS	200112L
@@ -153,11 +157,15 @@
 /* Advisory information interfaces are available.  */
 #define _POSIX_ADVISORY_INFO	200112L
 
+#ifdef __UCLIBC_HAS_IPV6__
 /* IPv6 support is available.  */
 #define _POSIX_IPV6	200112L
+#endif
 
+#ifdef __UCLIBC_HAS_SOCKET__
 /* Raw socket support is available.  */
 #define _POSIX_RAW_SOCKETS	200112L
+#endif
 
 /* We have at least one terminal.  */
 #define _POSIX2_CHAR_TERM	200112L
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h b/libpthread/nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h
index a3605c9..200dcf6 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h
@@ -97,8 +97,10 @@
 # define _POSIX_THREAD_ROBUST_PRIO_PROTECT	-1
 #endif
 
+#ifdef __UCLIBC_HAS_REALTIME__
 /* We support POSIX.1b semaphores.  */
 #define _POSIX_SEMAPHORES	200809L
+#endif
 
 /* Real-time signals are supported.  */
 #define _POSIX_REALTIME_SIGNALS	200809L
@@ -130,8 +132,10 @@
 /* Clock support in threads must be also checked at runtime.  */
 #define _POSIX_THREAD_CPUTIME	0
 
+#ifdef __UCLIBC_HAS_REGEX__
 /* GNU libc provides regular expression handling.  */
 #define _POSIX_REGEXP	1
+#endif
 
 /* Reader/Writer locks are available.  */
 #define _POSIX_READER_WRITER_LOCKS	200809L
@@ -171,11 +175,15 @@
 /* Advisory information interfaces are available.  */
 #define _POSIX_ADVISORY_INFO	200809L
 
+#ifdef __UCLIBC_HAS_IPV6__
 /* IPv6 support is available.  */
 #define _POSIX_IPV6	200809L
+#endif
 
+#ifdef __UCLIBC_HAS_SOCKET__
 /* Raw socket support is available.  */
 #define _POSIX_RAW_SOCKETS	200809L
+#endif
 
 /* We have at least one terminal.  */
 #define _POSIX2_CHAR_TERM	200809L
-- 
1.7.1



More information about the uClibc-cvs mailing list