Imported Upstream version 1.3.0
[deb_libnfs.git] / win32 / win32_errnowrapper.h
CommitLineData
5670ec6e
AM
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 WSAEINPROGRESS
15#endif //WIN32_ERRNOWRAPPER_H_