aboutsummaryrefslogtreecommitdiff
path: root/src/wsocket.h
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2009-05-27 09:31:38 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2009-05-27 09:31:38 +0000
commitbce60be30fe8e9c1b0eb33128c23c93d7bca5303 (patch)
tree3927343c777fcb7764a0f2f89754a0ceab141c21 /src/wsocket.h
parentd1a72435d5bd3528f3c334cd4d1da16dcead47bf (diff)
downloadluasocket-bce60be30fe8e9c1b0eb33128c23c93d7bca5303.tar.gz
luasocket-bce60be30fe8e9c1b0eb33128c23c93d7bca5303.tar.bz2
luasocket-bce60be30fe8e9c1b0eb33128c23c93d7bca5303.zip
Decent makefiles!
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 */