summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-20 00:25:55 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:29 +0200
commit7c7dd9d00f2577e667ed479ad5b1a1b5a403184a (patch)
treecaaae44030034bea24ba0ef53a5142ea02d1a52a /libc/sysdeps/linux/common
parenta9b153b6a8e66f00da69ab0cf2465767695fe86f (diff)
uClibc_pthread.h: do not install on target
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/bits/uClibc_mutex.h2
-rw-r--r--libc/sysdeps/linux/common/bits/uClibc_pthread.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/common/bits/uClibc_mutex.h b/libc/sysdeps/linux/common/bits/uClibc_mutex.h
index 8c3f6b251..94597e840 100644
--- a/libc/sysdeps/linux/common/bits/uClibc_mutex.h
+++ b/libc/sysdeps/linux/common/bits/uClibc_mutex.h
@@ -13,7 +13,9 @@
#ifdef __UCLIBC_HAS_THREADS__
#include <pthread.h>
+#ifdef _LIBC
#include <bits/uClibc_pthread.h>
+#endif
#define __UCLIBC_MUTEX_TYPE pthread_mutex_t
diff --git a/libc/sysdeps/linux/common/bits/uClibc_pthread.h b/libc/sysdeps/linux/common/bits/uClibc_pthread.h
index 15aa1deed..08673a0ac 100644
--- a/libc/sysdeps/linux/common/bits/uClibc_pthread.h
+++ b/libc/sysdeps/linux/common/bits/uClibc_pthread.h
@@ -27,8 +27,6 @@
# error "Always include <pthread.h> rather than <bits/uClibc_pthread.h>"
#endif
-#if defined _LIBC && (defined IS_IN_libc || defined NOT_IN_libc)
-
struct _pthread_cleanup_buffer;
/* Threading functions internal to uClibc. Make these thread functions
@@ -47,5 +45,3 @@ extern void weak_function _pthread_cleanup_pop_restore (
int __execute);
#endif
-
-#endif