Take maintenance for libnfs
[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
ee872606 12#define EAGAIN WSAEWOULDBLOCK //same on windows
5670ec6e 13#define EINTR WSAEINTR
ee872606
RRS
14#define EINPROGRESS WSAEWOULDBLOCK //does not map to WSAEINPROGRESS !
15
5670ec6e 16#endif //WIN32_ERRNOWRAPPER_H_