summaryrefslogtreecommitdiff
path: root/slirp/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'slirp/misc.c')
-rw-r--r--slirp/misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/slirp/misc.c b/slirp/misc.c
index 9ea7dd068e..14808fe21d 100644
--- a/slirp/misc.c
+++ b/slirp/misc.c
@@ -327,6 +327,8 @@ fork_exec(struct socket *so, const char *ex, int do_pty)
lprint("Error: openpty failed: %s\n", strerror(errno));
return 0;
}
+#else
+ return 0;
#endif
} else {
addr.sin_family = AF_INET;