diff --git a/sc2/src/sc2code/libs/network/connect/listen.c b/sc2/src/sc2code/libs/network/connect/listen.c index 45fc8a1f0..860d651df 100644 --- a/sc2/src/sc2code/libs/network/connect/listen.c +++ b/sc2/src/sc2code/libs/network/connect/listen.c @@ -377,7 +377,9 @@ acceptSingleConnection(ListenState *listenState, NetDescriptor *nd) { case ENFILE: case ENOBUFS: case ENOMEM: +#ifdef ENOSR case ENOSR: +#endif // Serious problems, but future connections may still // be possible. log_add(log_Warning, "accept() reported '%s'\n", diff --git a/sc2/src/sc2code/libs/network/socket/socket_bsd.c b/sc2/src/sc2code/libs/network/socket/socket_bsd.c index a74093666..b39a98fa0 100644 --- a/sc2/src/sc2code/libs/network/socket/socket_bsd.c +++ b/sc2/src/sc2code/libs/network/socket/socket_bsd.c @@ -33,6 +33,7 @@ #include #if defined(__FreeBSD__) || defined(__OpenBSD__) # include +# include #endif #include #include