Forráskód Böngészése

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>
Mike Frysinger 15 éve
szülő
commit
f39e03cb01

+ 1 - 0
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"
 

+ 11 - 0
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"