aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2020-03-20 14:56:14 +0100
committerMarc-André Lureau <marcandre.lureau@redhat.com>2020-03-20 14:57:34 +0100
commitc6cc0eb1ebd55cb9b35107b3aa87a4680c47f3ca (patch)
tree7175f0d981bffe9db93ba81be227aa5816eadd0d
parent8985b73b748ec13bdb16b8c9ba83ac75bd4c0e4b (diff)
downloadslirp-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>
-rw-r--r--src/slirp.c5
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 */