https://bugs.gentoo.org/866932 --- a/socket.c +++ b/socket.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #if HAVE_ERR