diff mbox

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

Message ID 1425405885-10455-1-git-send-email-gustavo@zacarias.com.ar
State Accepted
Commit 8e5113112ae7d3402e2afb01c8cee18d3beb0f2e
Headers show

Commit Message

Gustavo Zacarias March 3, 2015, 6:04 p.m. UTC
Otherwise we have a broken scenario with non-threading builds.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 libc/sysdeps/linux/sparc/clone.S | 2 ++
 1 file changed, 2 insertions(+)

Comments

Bernhard Reutner-Fischer March 3, 2015, 6:13 p.m. UTC | #1
On 3 March 2015 at 19:04, Gustavo Zacarias <gustavo@zacarias.com.ar> wrote:
> Otherwise we have a broken scenario with non-threading builds.

Applied, thanks!
Does sparc work Ok for you?

thanks,
Gustavo Zacarias March 3, 2015, 6:44 p.m. UTC | #2
On 03/03/2015 03:13 PM, Bernhard Reutner-Fischer wrote:

> Applied, thanks!
> Does sparc work Ok for you?

As far as qemu is concerned it seems to be a happy camper on master
(i've got no real sparc hardware to test).
Regards.
diff mbox

Patch

diff --git a/libc/sysdeps/linux/sparc/clone.S b/libc/sysdeps/linux/sparc/clone.S
index 8d9da5a..1d0e3e6 100644
--- a/libc/sysdeps/linux/sparc/clone.S
+++ b/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