summary refs log tree commit diff stats
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@nokia.com>2010-11-26 16:21:34 +0200
committerRiku Voipio <riku.voipio@nokia.com>2010-12-03 15:09:39 +0200
commit9190749fbe075ece4a72380cc3dea919a8f960c3 (patch)
tree28889850c925132a044f5c0874a9e535ce5706c9 /linux-user/syscall.c
parenta59d69da66da551fa078e05ff08cf535b768c308 (diff)
downloadfocaccia-qemu-9190749fbe075ece4a72380cc3dea919a8f960c3.tar.gz
focaccia-qemu-9190749fbe075ece4a72380cc3dea919a8f960c3.zip
linux-user: fix compiler error on nptl
Some compilers detect that new_stack isnt used after dd75d784

Signed-off-by: Riku Voipio <riku.voipio@nokia.com>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 070241bb8a..c3e870654d 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -3635,11 +3635,12 @@ static int do_fork(CPUState *env, unsigned int flags, abi_ulong newsp,
 {
     int ret;
     TaskState *ts;
-    uint8_t *new_stack;
     CPUState *new_env;
 #if defined(CONFIG_USE_NPTL)
     unsigned int nptl_flags;
     sigset_t sigmask;
+#else
+    uint8_t *new_stack;
 #endif
 
     /* Emulate vfork() with fork() */