slirp: avoid compiling unused fork_exec code.

This commit is contained in:
Mark Pizzolato 2018-05-08 13:05:40 -07:00
parent 0c0a9958b1
commit fc104f90da

View file

@ -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