ebed01c35eed8a00a8f56a14895f0bbbd7983925
[deb_libnfs.git] / win32 / win32_errnowrapper.h
1 #ifndef WIN32_ERRNOWRAPPER_H_
2 #define WIN32_ERRNOWRAPPER_H_
3
4 #undef errno
5 #define errno WSAGetLastError()
6 #undef EAGAIN
7 #undef EWOULDBLOCK
8 #undef EINTR
9 #undef EINPROGRESS
10
11 #define EWOULDBLOCK WSAEWOULDBLOCK
12 #define EAGAIN WSAEWOULDBLOCK //same on windows
13 #define EINTR WSAEINTR
14 #define EINPROGRESS WSAEWOULDBLOCK //does not map to WSAEINPROGRESS !
15
16 #endif //WIN32_ERRNOWRAPPER_H_