X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=win32%2Fwin32_compat.h;h=f15a606ef0a7b77c2d773d47068fc17ce41cc309;hb=178e092acab7fcd2a8025257e219060f285a3c0f;hp=43f518e3b9cc7d2cb394390a16d675099ecb8384;hpb=5ac848e9083a0bafd353d906e36f073aac3730e0;p=deb_libnfs.git diff --git a/win32/win32_compat.h b/win32/win32_compat.h index 43f518e..f15a606 100644 --- a/win32/win32_compat.h +++ b/win32/win32_compat.h @@ -79,6 +79,8 @@ typedef int socklen_t; #define MSG_DONTWAIT 0 #define ssize_t SSIZE_T +#if(_WIN32_WINNT < 0x0600) + #define POLLIN 0x0001 /* There is data to read */ #define POLLPRI 0x0002 /* There is urgent data to read */ #define POLLOUT 0x0004 /* Writing now will not block */ @@ -91,6 +93,7 @@ struct pollfd { short events; /* requested events */ short revents; /* returned events */ }; +#endif /* Wrapper macros to call misc. functions win32 is missing */ #define poll(x, y, z) win32_poll(x, y, z)