From 0d95c386ac900430563141585d82aaa35dca0a6d Mon Sep 17 00:00:00 2001 From: Lassi Kortela Date: Wed, 21 Aug 2019 22:14:04 +0300 Subject: [PATCH] Fix socket includes --- c/os_windows.c | 4 ++-- c/socket.c | 5 +++++ c/socket.h | 10 ---------- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/c/os_windows.c b/c/os_windows.c index 49b4ffc..c378350 100644 --- a/c/os_windows.c +++ b/c/os_windows.c @@ -2,6 +2,8 @@ #include +#include + #include #include #include @@ -13,13 +15,11 @@ #include #include #include -#include #include "dtypes.h" #include "utils.h" #include "utf8.h" #include "ios.h" -#include "socket.h" #include "timefuncs.h" #include "hashing.h" #include "htable.h" diff --git a/c/socket.c b/c/socket.c index f438fe0..59626c8 100644 --- a/c/socket.c +++ b/c/socket.c @@ -1,10 +1,15 @@ #include #include +#include #include +#include + #include #include +#include +#include #include #include #include diff --git a/c/socket.h b/c/socket.h index 58631d5..8f4118c 100644 --- a/c/socket.h +++ b/c/socket.h @@ -1,13 +1,3 @@ -#ifdef _WIN32 -#include -#else -#include -#include -#include -#include -#include -#endif - #ifndef _WIN32 void closesocket(int fd); #endif