build: Re-enable SLiRP (user networking)

This commit is contained in:
Matt Borgerson 2020-05-30 17:24:23 -07:00 committed by mborgerson
parent c71cef3a54
commit 76107a4371
2 changed files with 2 additions and 1 deletions

View File

@ -208,7 +208,6 @@ set -x # Print commands from now on
--disable-sheepdog \
--without-default-devices \
--disable-blobs \
--disable-slirp \
"$@"
time make -j"${job_count}" 2>&1 | tee build.log

View File

@ -4372,8 +4372,10 @@ void qemu_init(int argc, char **argv, char **envp)
if (default_net) {
QemuOptsList *net = qemu_find_opts("net");
qemu_opts_set(net, NULL, "type", "nic", &error_abort);
#ifndef XBOX
#ifdef CONFIG_SLIRP
qemu_opts_set(net, NULL, "type", "user", &error_abort);
#endif
#endif
}