aboutsummaryrefslogtreecommitdiff
path: root/src/wsocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wsocket.h')
-rw-r--r--src/wsocket.h22
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
15typedef int socklen_t;
16typedef int ssize_t;
17typedef SOCKET t_sock;
18typedef t_sock *p_sock;
19
20#define SOCK_INVALID (INVALID_SOCKET)
21
22#endif /* WSOCKET_H */