aboutsummaryrefslogtreecommitdiff
path: root/vendor/luasocket/src/wsocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/luasocket/src/wsocket.h')
-rw-r--r--vendor/luasocket/src/wsocket.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/vendor/luasocket/src/wsocket.h b/vendor/luasocket/src/wsocket.h
new file mode 100644
index 00000000..39866402
--- /dev/null
+++ b/vendor/luasocket/src/wsocket.h
@@ -0,0 +1,33 @@
1#ifndef WSOCKET_H
2#define WSOCKET_H
3/*=========================================================================*\
4* Socket compatibilization module for Win32
5* LuaSocket toolkit
6\*=========================================================================*/
7
8/*=========================================================================*\
9* WinSock include files
10\*=========================================================================*/
11#include <winsock2.h>
12#include <ws2tcpip.h>
13
14typedef int socklen_t;
15typedef SOCKADDR_STORAGE t_sockaddr_storage;
16typedef SOCKET t_socket;
17typedef t_socket *p_socket;
18
19#ifndef IPV6_V6ONLY
20#define IPV6_V6ONLY 27
21#endif
22
23#define SOCKET_INVALID (INVALID_SOCKET)
24
25#ifndef SO_REUSEPORT
26#define SO_REUSEPORT SO_REUSEADDR
27#endif
28
29#ifndef AI_NUMERICSERV
30#define AI_NUMERICSERV (0)
31#endif
32
33#endif /* WSOCKET_H */