mirror of
https://github.com/simh/simh.git
synced 2026-01-25 19:56:25 +00:00
slirp: avoid compiling unused fork_exec code.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user