aboutsummaryrefslogtreecommitdiff
path: root/src/wsocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wsocket.h')
-rw-r--r--src/wsocket.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/wsocket.h b/src/wsocket.h
index e4f0e92..8e0f114 100644
--- a/src/wsocket.h
+++ b/src/wsocket.h
@@ -3,14 +3,13 @@
3/*=========================================================================*\ 3/*=========================================================================*\
4* Socket compatibilization module for Win32 4* Socket compatibilization module for Win32
5* LuaSocket toolkit 5* LuaSocket toolkit
6*
7* RCS ID: $Id$
8\*=========================================================================*/ 6\*=========================================================================*/
9 7
10/*=========================================================================*\ 8/*=========================================================================*\
11* WinSock include files 9* WinSock include files
12\*=========================================================================*/ 10\*=========================================================================*/
13#include <winsock.h> 11#include <winsock2.h>
12#include <ws2tcpip.h>
14 13
15typedef int socklen_t; 14typedef int socklen_t;
16typedef SOCKET t_socket; 15typedef SOCKET t_socket;
@@ -18,4 +17,8 @@ typedef t_socket *p_socket;
18 17
19#define SOCKET_INVALID (INVALID_SOCKET) 18#define SOCKET_INVALID (INVALID_SOCKET)
20 19
20#ifndef SO_REUSEPORT
21#define SO_REUSEPORT SO_REUSEADDR
22#endif
23
21#endif /* WSOCKET_H */ 24#endif /* WSOCKET_H */