From 7350a372e22e5813f1417e388e8651b05174a664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Mon, 17 May 2010 11:01:49 +0300 Subject: static build: define pthreads wrappers only for threaded builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise we get compiler errors due to undefined prototypes as noticed by Denys. Signed-off-by: Timo Teräs Signed-off-by: Austin Foxley --- libc/misc/internals/__uClibc_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c index a98d92a8c..d82126815 100644 --- a/libc/misc/internals/__uClibc_main.c +++ b/libc/misc/internals/__uClibc_main.c @@ -69,6 +69,7 @@ uintptr_t __guard attribute_relro; void internal_function _dl_aux_init (ElfW(auxv_t) *av); +#ifdef __UCLIBC_HAS_THREADS__ /* * uClibc internal locking requires that we have weak aliases * for dummy functions in case libpthread.a is not linked in. @@ -102,6 +103,7 @@ _pthread_cleanup_pop_restore(struct _pthread_cleanup_buffer *__buffer, if (__execute) __buffer->__routine(__buffer->__arg); } +#endif /* __UCLIBC_HAS_THREADS__ */ #endif /* !SHARED */ -- cgit v1.2.3