summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-07-20 14:57:24 -0400
committerMike Frysinger <vapier@gentoo.org>2009-07-20 14:57:24 -0400
commitf39e03cb01e02000a8d2d2df76971afa0e523881 (patch)
tree7c463c9fc804462f3d831eeb42d1f4cf77673650
parent82be16427666e8e63af7233345ca949f471acaa6 (diff)
linuxthreads.old: extend workaround for asm rename warnings
The libc_pthread_init.c needs the include workaround like forward.c, and forward.c needs more includes now. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--libpthread/linuxthreads.old/forward.c1
-rw-r--r--libpthread/linuxthreads.old/libc_pthread_init.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/libpthread/linuxthreads.old/forward.c b/libpthread/linuxthreads.old/forward.c
index aa5c8abd9..402b15543 100644
--- a/libpthread/linuxthreads.old/forward.c
+++ b/libpthread/linuxthreads.old/forward.c
@@ -46,6 +46,7 @@ For now, just include all headers before internals.h
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
+#include <sys/time.h>
#include "internals.h"
diff --git a/libpthread/linuxthreads.old/libc_pthread_init.c b/libpthread/linuxthreads.old/libc_pthread_init.c
index 6bd08076c..2b0deae84 100644
--- a/libpthread/linuxthreads.old/libc_pthread_init.c
+++ b/libpthread/linuxthreads.old/libc_pthread_init.c
@@ -21,6 +21,17 @@
#include <locale.h>
#include <stdlib.h>
#include <string.h>
+
+/* see comment in forward.c */
+#define GCC_RENAME_BUG 1
+#ifdef GCC_RENAME_BUG
+# include <ctype.h>
+# include <signal.h>
+# include <unistd.h>
+# include <sys/time.h>
+# include <sys/wait.h>
+#endif
+
#include "internals.h"
#include "sysdeps/pthread/pthread-functions.h"