Commit 9190749f authored by Riku Voipio's avatar Riku Voipio
Browse files

linux-user: fix compiler error on nptl



Some compilers detect that new_stack isnt used after dd75d784
Signed-off-by: default avatarRiku Voipio <riku.voipio@nokia.com>
parent a59d69da
......@@ -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() */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment