Initial revision
[TestXSLT.git] / libxml2 / include / wsockcompat.h
1 /* include/wsockcompat.h
2  * Windows -> Berkeley Sockets compatibility things.
3  */
4
5 #if !defined __XML_WSOCKCOMPAT_H__
6 #define __XML_WSOCKCOMPAT_H__
7
8 #ifdef _WIN32_WCE
9 #include <winsock.h>
10 #else
11 #undef HAVE_ERRNO_H
12 #include <winsock2.h>
13 #endif
14
15 #if !defined SOCKLEN_T
16 #define SOCKLEN_T int
17 #endif
18
19 #define EWOULDBLOCK             WSAEWOULDBLOCK
20 #define EINPROGRESS             WSAEINPROGRESS
21 #define EALREADY                WSAEALREADY
22 #define ENOTSOCK                WSAENOTSOCK
23 #define EDESTADDRREQ            WSAEDESTADDRREQ
24 #define EMSGSIZE                WSAEMSGSIZE
25 #define EPROTOTYPE              WSAEPROTOTYPE
26 #define ENOPROTOOPT             WSAENOPROTOOPT
27 #define EPROTONOSUPPORT         WSAEPROTONOSUPPORT
28 #define ESOCKTNOSUPPORT         WSAESOCKTNOSUPPORT
29 #define EOPNOTSUPP              WSAEOPNOTSUPP
30 #define EPFNOSUPPORT            WSAEPFNOSUPPORT
31 #define EAFNOSUPPORT            WSAEAFNOSUPPORT
32 #define EADDRINUSE              WSAEADDRINUSE
33 #define EADDRNOTAVAIL           WSAEADDRNOTAVAIL
34 #define ENETDOWN                WSAENETDOWN
35 #define ENETUNREACH             WSAENETUNREACH
36 #define ENETRESET               WSAENETRESET
37 #define ECONNABORTED            WSAECONNABORTED
38 #define ECONNRESET              WSAECONNRESET
39 #define ENOBUFS                 WSAENOBUFS
40 #define EISCONN                 WSAEISCONN
41 #define ENOTCONN                WSAENOTCONN
42 #define ESHUTDOWN               WSAESHUTDOWN
43 #define ETOOMANYREFS            WSAETOOMANYREFS
44 #define ETIMEDOUT               WSAETIMEDOUT
45 #define ECONNREFUSED            WSAECONNREFUSED
46 #define ELOOP                   WSAELOOP
47 #define EHOSTDOWN               WSAEHOSTDOWN
48 #define EHOSTUNREACH            WSAEHOSTUNREACH
49 #define EPROCLIM                WSAEPROCLIM
50 #define EUSERS                  WSAEUSERS
51 #define EDQUOT                  WSAEDQUOT
52 #define ESTALE                  WSAESTALE
53 #define EREMOTE                 WSAEREMOTE
54 /* These cause conflicts with the codes from errno.h. Since they are 
55    not used in the relevant code (nanoftp, nanohttp), we can leave 
56    them disabled.
57 #define ENAMETOOLONG            WSAENAMETOOLONG
58 #define ENOTEMPTY               WSAENOTEMPTY
59 */
60
61 #endif /* __XML_WSOCKCOMPAT_H__ */