# HG changeset patch # User Michael Pavone # Date 1588313930 25200 # Node ID 417e0fc958cc6f2e0be5fae7439827b8cc9b8957 # Parent 5a76a7373823ad9584e806da87251fb03765bb14 Fix non-Windows build break from Windows compat changes diff -r 5a76a7373823 -r 417e0fc958cc util.c --- a/util.c Thu Apr 30 23:15:50 2020 -0700 +++ b/util.c Thu Apr 30 23:18:50 2020 -0700 @@ -441,6 +441,10 @@ exit(1); } +#ifndef _WIN32 +#include +#endif + void warning(char *format, ...) { va_list args; @@ -722,7 +726,6 @@ #else #include -#include void socket_init(void) { @@ -730,7 +733,7 @@ int socket_blocking(int sock, int should_block) { - if (fcntl(listen_sock, F_SETFL, should_block ? 0 : O_NONBLOCK)) { + if (fcntl(sock, F_SETFL, should_block ? 0 : O_NONBLOCK)) { return errno; } return 0;