repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Win32] Add windows x64 builds, use some win defines from header if available
[deb_libnfs.git]
/
win32
/
win32_compat.h
diff --git
a/win32/win32_compat.h
b/win32/win32_compat.h
index 43f518e3b9cc7d2cb394390a16d675099ecb8384..f15a606ef0a7b77c2d773d47068fc17ce41cc309 100644
(file)
--- 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
#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 */
#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 */
};
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)
/* Wrapper macros to call misc. functions win32 is missing */
#define poll(x, y, z) win32_poll(x, y, z)