From 7c7dd9d00f2577e667ed479ad5b1a1b5a403184a Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sun, 20 Mar 2011 00:25:55 +0100 Subject: uClibc_pthread.h: do not install on target Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- Makefile.in | 1 + libc/sysdeps/linux/common/bits/uClibc_mutex.h | 2 ++ libc/sysdeps/linux/common/bits/uClibc_pthread.h | 4 ---- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile.in b/Makefile.in index 5d5897212..65b316001 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 \ 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 +#ifdef _LIBC #include +#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 rather than " #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 -- cgit v1.2.3