$NetBSD: patch-src_io_network.cpp,v 1.1 2023/03/02 03:44:39 charlotte Exp $ Use correct timeval struct for NetBSD. --- src/io/network.cpp.orig 2019-01-06 13:41:53.000000000 +0000 +++ src/io/network.cpp @@ -63,6 +63,8 @@ #include #endif +#include + /** * Initialise networking. */ @@ -174,7 +176,7 @@ int Network::join (char *address) { #ifdef USE_SOCKETS sockaddr_in sockAddr; fd_set writefds; - timeval timeouttv; + struct timeval timeouttv; unsigned int timeout; int sock, con;