Browse Source

sparc/clone.S: guard tcb-offsets.h include with RESET_PID

Otherwise we have a broken scenario with non-threading builds.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Gustavo Zacarias 9 years ago
parent
commit
8e5113112a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libc/sysdeps/linux/sparc/clone.S

+ 2 - 0
libc/sysdeps/linux/sparc/clone.S

@@ -22,7 +22,9 @@
 
 #include <asm/errno.h>
 #include <asm/unistd.h>
+#ifdef RESET_PID
 #include <tcb-offsets.h>
+#endif
 #include <sysdep.h>
 
 #define CLONE_VM	0x00000100