From c6cc0eb1ebd55cb9b35107b3aa87a4680c47f3ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Fri, 20 Mar 2020 14:56:14 +0100 Subject: build-sys: fix NetBSD build regression MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: 09d410adbff5422b7ba7596bce0ca71f9f807ea9 ("allow custom MTU") Signed-off-by: Marc-André Lureau --- src/slirp.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/slirp.c') 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 #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 */ -- cgit v1.1