slirp: avoid compiling unused fork_exec code.
This commit is contained in:
parent
0c0a9958b1
commit
fc104f90da
1 changed files with 4 additions and 0 deletions
|
@ -114,6 +114,7 @@ fork_exec(struct socket *so, const char *ex, int do_pty)
|
|||
int
|
||||
fork_exec(struct socket *so, const char *ex, int do_pty)
|
||||
{
|
||||
#if defined(NEED_FORK_EXEC)
|
||||
int s;
|
||||
struct sockaddr_in addr;
|
||||
socklen_t addrlen = sizeof(addr);
|
||||
|
@ -229,6 +230,9 @@ fork_exec(struct socket *so, const char *ex, int do_pty)
|
|||
|
||||
return 1;
|
||||
}
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue