summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/network.c3
-rw-r--r--core/network.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/core/network.c b/core/network.c
index 549427bf..ec234593 100644
--- a/core/network.c
+++ b/core/network.c
@@ -159,7 +159,10 @@ int init_networking(IP ip, uint16_t port)
159void shutdown_networking() 159void shutdown_networking()
160{ 160{
161 #ifdef WIN32 161 #ifdef WIN32
162 closesocket(sock);
162 WSACleanup(); 163 WSACleanup();
164 #else
165 close(sock);
163 #endif 166 #endif
164 return; 167 return;
165} 168}
diff --git a/core/network.h b/core/network.h
index dcbd4160..eaf12003 100644
--- a/core/network.h
+++ b/core/network.h
@@ -48,6 +48,7 @@
48#include <sys/time.h> 48#include <sys/time.h>
49#include <sys/types.h> 49#include <sys/types.h>
50#include <netdb.h> 50#include <netdb.h>
51#include <unistd.h>
51 52
52#endif 53#endif
53 54