2
* Copyright (C) 2010 Brian Aker, Trond Norbye
5
* Use and distribution licensed under the BSD license. See
6
* the COPYING file in the parent directory for full text.
8
* Summary: errno.h for windows
15
#if TARGET_OS_WINDOWS && ! defined(__CYGWIN__)
18
/* define ENOMEM if it's not #defined (e.g., when using pure libc headers) */
23
# define ERANGE 34 /* Math result not representable. */
26
# define EINPROGRESS WSAEINPROGRESS
27
# define EALREADY WSAEALREADY
28
# define EISCONN WSAEISCONN
29
# define ENOBUFS WSAENOBUFS
30
# define EAGAIN WSAEWOULDBLOCK
31
# define EINTR WSAEINTR
32
# define EPIPE WSAECONNRESET
33
# define EINVAL WSAEINVAL
34
# define ECONNREFUSED WSAECONNREFUSED
35
# define ENETUNREACH WSAENETUNREACH
36
# define ETIMEDOUT WSAETIMEDOUT
37
# define ECONNRESET WSAECONNRESET
38
# define EADDRINUSE WSAEADDRINUSE
39
# define EOPNOTSUPP WSAEOPNOTSUPP
40
# define ENOPROTOOPT WSAENOPROTOOPT
41
# define EWOULDBLOCK EAGAIN
42
# define ENOTSOCK 10038
43
# define EDESTADDRREQ 10039
44
# define EMSGSIZE 10040
45
# define EPROTOTYPE 10041
46
# define EPROTONOSUPPORT 10043
47
# define EAFNOSUPPORT 10047
48
# define EADDRNOTAVAIL 10049
49
# define ENETDOWN 10050
50
# define ENETRESET 10052
51
# define ECONNABORTED 10053
52
# define ENOTCONN 10057
54
# define EHOSTUNREACH 10065
58
#include_next <errno.h>
61
#endif /* WIN32_ERRNO_H */