diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-03-20 14:56:14 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-03-20 14:57:34 +0100 |
commit | c6cc0eb1ebd55cb9b35107b3aa87a4680c47f3ca (patch) | |
tree | 7175f0d981bffe9db93ba81be227aa5816eadd0d /src/slirp.c | |
parent | 8985b73b748ec13bdb16b8c9ba83ac75bd4c0e4b (diff) | |
download | slirp-c6cc0eb1ebd55cb9b35107b3aa87a4680c47f3ca.zip slirp-c6cc0eb1ebd55cb9b35107b3aa87a4680c47f3ca.tar.gz slirp-c6cc0eb1ebd55cb9b35107b3aa87a4680c47f3ca.tar.bz2 |
build-sys: fix NetBSD build regression
Fixes: 09d410adbff5422b7ba7596bce0ca71f9f807ea9 ("allow custom MTU")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'src/slirp.c')
-rw-r--r-- | src/slirp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slirp.c b/src/slirp.c index 4967475..14458e8 100644 --- a/src/slirp.c +++ b/src/slirp.c @@ -29,6 +29,11 @@ #include <net/if.h> #endif +/* https://gitlab.freedesktop.org/slirp/libslirp/issues/18 */ +#if defined(__NetBSD__) && defined(if_mtu) +#undef if_mtu +#endif + int slirp_debug; /* Define to 1 if you want KEEPALIVE timers */ |