mirror of https://github.com/xqemu/xqemu.git
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>
This commit is contained in:
parent
a59d69da66
commit
9190749fbe
|
@ -3635,11 +3635,12 @@ static int do_fork(CPUState *env, unsigned int flags, abi_ulong newsp,
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
TaskState *ts;
|
TaskState *ts;
|
||||||
uint8_t *new_stack;
|
|
||||||
CPUState *new_env;
|
CPUState *new_env;
|
||||||
#if defined(CONFIG_USE_NPTL)
|
#if defined(CONFIG_USE_NPTL)
|
||||||
unsigned int nptl_flags;
|
unsigned int nptl_flags;
|
||||||
sigset_t sigmask;
|
sigset_t sigmask;
|
||||||
|
#else
|
||||||
|
uint8_t *new_stack;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Emulate vfork() with fork() */
|
/* Emulate vfork() with fork() */
|
||||||
|
|
Loading…
Reference in New Issue