summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/bits
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-08-02 19:51:27 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-08-02 19:51:27 +0200
commit766829d0b8ef0665e044159e3823c181fbfb8175 (patch)
treebf348efff939f06c398db23de33ca5df47f0fe07 /libc/sysdeps/linux/common/bits
parent581203ebad402d1b2ed64c8ba67cc93273527a57 (diff)
nptl: _POSIX_IPV6 depends on UCLIBC_HAS_IPV6
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common/bits')
-rw-r--r--libc/sysdeps/linux/common/bits/posix_opt.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/bits/posix_opt.h b/libc/sysdeps/linux/common/bits/posix_opt.h
index 46d169759..aa40eae43 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