OSDN Git Service

uClibc_pthread.h: do not install on target
authorPeter S. Mazinger <ps.m@gmx.net>
Sat, 19 Mar 2011 23:25:55 +0000 (00:25 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 15 Jun 2012 12:00:29 +0000 (14:00 +0200)
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Makefile.in
libc/sysdeps/linux/common/bits/uClibc_mutex.h
libc/sysdeps/linux/common/bits/uClibc_pthread.h

index 5d58972..65b3160 100644 (file)
@@ -229,6 +229,7 @@ HEADERS_RM- := \
        bits/syscalls.h \
        bits/syscalls-common.h \
        bits/uClibc_fpmax.h \
+       bits/uClibc_pthread.h \
        bits/uClibc_uintmaxtostr.h \
        bits/uClibc_uwchar.h \
        bits/uClibc_va_copy.h \
index 8c3f6b2..94597e8 100644 (file)
@@ -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
 
index 15aa1de..08673a0 100644 (file)
@@ -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