diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-06-18 14:37:26 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-06-18 14:37:26 +0000 |
commit | 095240c022f9d51b4c1fdc0a737583192c49ec6a (patch) | |
tree | a488f92c3c0e465bbeba03a7a30c4ed7235726d2 /libpthread/linuxthreads.old/forward.c | |
parent | 5ffc30ac873a193b37e6f3bfde022b94fc6fab0d (diff) | |
download | uClibc-alpine-095240c022f9d51b4c1fdc0a737583192c49ec6a.tar.bz2 uClibc-alpine-095240c022f9d51b4c1fdc0a737583192c49ec6a.tar.xz |
Synch linuxthreads.old with trunk
Diffstat (limited to 'libpthread/linuxthreads.old/forward.c')
-rw-r--r-- | libpthread/linuxthreads.old/forward.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libpthread/linuxthreads.old/forward.c b/libpthread/linuxthreads.old/forward.c index 2cd019651..eeaefd7a3 100644 --- a/libpthread/linuxthreads.old/forward.c +++ b/libpthread/linuxthreads.old/forward.c @@ -23,6 +23,27 @@ /* psm: keep this before internals.h */ libc_hidden_proto(exit) +/* vda: here's why: +In libpthread/linuxthreads.old/sysdeps/pthread/bits/libc-lock.h +adding libc_hidden_proto(foo) just before weak_extern (__pthread_initialize) +will not warn: + //libc_hidden_proto(foo) + weak_extern (__pthread_initialize) + //libc_hidden_proto(foo) +but adding after will! Which is extremely strange - +weak_extern expands into just "#pragma weak __pthread_initialize". +TODO: determine whether it is a gcc bug or what +(see gcc.gnu.org/bugzilla/show_bug.cgi?id=36282). +For now, just include all headers before internals.h +(they are again included in internals.h - maybe remove them there later) +*/ +#include <string.h> +#include <limits.h> +#include <setjmp.h> +#include <signal.h> +#include <unistd.h> +#include <sys/types.h> +#include <sys/wait.h> #include "internals.h" |