|
@@ -23,6 +23,26 @@
|
|
|
|
|
|
|
|
|
libc_hidden_proto(exit)
|
|
|
+
|
|
|
+In libpthread/linuxthreads.old/sysdeps/pthread/bits/libc-lock.h
|
|
|
+adding libc_hidden_proto(foo) just before weak_extern (__pthread_initialize)
|
|
|
+will not warn:
|
|
|
+
|
|
|
+ weak_extern (__pthread_initialize)
|
|
|
+
|
|
|
+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...
|
|
|
+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"
|
|
|
|