Преглед на файлове

static build: define pthreads wrappers only for threaded builds

Otherwise we get compiler errors due to undefined prototypes
as noticed by Denys.

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Timo Teräs преди 14 години
родител
ревизия
7350a372e2
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      libc/misc/internals/__uClibc_main.c

+ 2 - 0
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 */