From 6c4416e8c266c7dc10eb3f3af8f913ace1da84e2 Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 28 Oct 2022 17:16:17 +0100 Subject: [PATCH] Fix build with Clang 16 Bug: https://bugs.gentoo.org/871171 --- a/vmnet.c +++ b/vmnet.c @@ -49,12 +49,15 @@ * to set up the SLIP connection and parse/generated SLIP packets. */ +#define _GNU_SOURCE #include #include #include #include #include #include +#include +#include #include #include #include @@ -251,7 +254,7 @@ void tty_setup(slipconn *sc) } } -int slip_setup(slipconn *sc) +void slip_setup(slipconn *sc) { int disc, sencap = 0;