a98ee688cc60613559fb2a79645e8f207c6e8ffe
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / uclibc / 0.9.33.2 / 0067-sparc-clone.S-guard-tcb-offsets.h-include-with-RESET_P.patch
1 From 857420a3271dc5bbddbe45a9e9878b9dc88fd143 Mon Sep 17 00:00:00 2001
2 From: Gustavo Zacarias <gustavo@zacarias.com.ar>
3 Date: Tue, 3 Mar 2015 14:56:17 -0300
4 Subject: [PATCH] sparc/clone.S: guard tcb-offsets.h include with RESET_PID
5
6 Status: upstream [uClibc]
7
8 Otherwise we have a broken scenario with non-threading builds.
9
10 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
11 ---
12  libc/sysdeps/linux/sparc/clone.S | 2 ++
13  1 file changed, 2 insertions(+)
14
15 diff --git a/libc/sysdeps/linux/sparc/clone.S b/libc/sysdeps/linux/sparc/clone.S
16 index 8d9da5a..1d0e3e6 100644
17 --- a/libc/sysdeps/linux/sparc/clone.S
18 +++ b/libc/sysdeps/linux/sparc/clone.S
19 @@ -22,7 +22,9 @@
20  
21  #include <asm/errno.h>
22  #include <asm/unistd.h>
23 +#ifdef RESET_PID
24  #include <tcb-offsets.h>
25 +#endif
26  #include <sysdep.h>
27  
28  #define CLONE_VM       0x00000100
29 -- 
30 2.0.5
31