diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-06-11 01:42:18 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-06-11 01:42:18 +0000 |
commit | f330540576031528f0daac231c61d4dd06e8ba1e (patch) | |
tree | 8f9cd79ac7d4ec937413bbae8a90e8782c1afe18 /src/wsocket.h | |
parent | 58bdb658aaa1c30a8f3bed46eef880d308fae582 (diff) | |
download | luasocket-f330540576031528f0daac231c61d4dd06e8ba1e.tar.gz luasocket-f330540576031528f0daac231c61d4dd06e8ba1e.tar.bz2 luasocket-f330540576031528f0daac231c61d4dd06e8ba1e.zip |
Compiles and runs on linux and windows, using DLLs!
Diffstat (limited to 'src/wsocket.h')
-rw-r--r-- | src/wsocket.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/wsocket.h b/src/wsocket.h new file mode 100644 index 0000000..ceecae7 --- /dev/null +++ b/src/wsocket.h | |||
@@ -0,0 +1,22 @@ | |||
1 | /*=========================================================================*\ | ||
2 | * Socket compatibilization module for Win32 | ||
3 | * | ||
4 | * RCS ID: $Id$ | ||
5 | \*=========================================================================*/ | ||
6 | #ifndef WSOCKET_H | ||
7 | #define WSOCKET_H | ||
8 | |||
9 | /*=========================================================================*\ | ||
10 | * WinSock2 include files | ||
11 | \*=========================================================================*/ | ||
12 | #include <winsock2.h> | ||
13 | #include <winbase.h> | ||
14 | |||
15 | typedef int socklen_t; | ||
16 | typedef int ssize_t; | ||
17 | typedef SOCKET t_sock; | ||
18 | typedef t_sock *p_sock; | ||
19 | |||
20 | #define SOCK_INVALID (INVALID_SOCKET) | ||
21 | |||
22 | #endif /* WSOCKET_H */ | ||