diff options
Diffstat (limited to 'src/common/socket.h')
-rw-r--r-- | src/common/socket.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/socket.h b/src/common/socket.h index 172712d26..68b204862 100644 --- a/src/common/socket.h +++ b/src/common/socket.h @@ -5,8 +5,9 @@ #include <stdio.h> -#ifdef _WIN32 +#ifdef __WIN32 #include <winsock.h> +#define close(fd) closesocket(fd) #else #include <sys/types.h> #include <sys/socket.h> |