summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorLinda Sun <lsun@vmware.com>2014-01-09 16:26:12 -0800
committerBen Pfaff <blp@nicira.com>2014-01-17 16:11:20 -0800
commit4ca828d713451307fea449be5111272f47c0c5a7 (patch)
treec66c3312265eb2136ebfd98d755b843a9eb2921a /include/linux
parentd103f479c6a4135935f9b12f5b4f4adc91e806c3 (diff)
downloadopenvswitch-4ca828d713451307fea449be5111272f47c0c5a7.tar.gz
poll-loop: Port to Windows.
Use WaitForMultipleObjects for polling on windows. This works on all kinds of objects, e.g. sockets, files, especially ioctl calls to the kernel. poll_fd_wait_event() is used if events need to be passed to pollfds. latch is signaled with event, to be waited/polled by WaitForMultipleObjects() as well. Changed array of fds to hmap to check for duplicate fds. Signed-off-by: Linda Sun <lsun@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h
index b88fb1c04..d8b993b24 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -55,4 +55,8 @@ typedef uint32_t __bitwise__ __be32;
typedef uint64_t __bitwise__ __be64;
#endif /* no <linux/types.h> */
+#ifndef _WIN32
+typedef __u32 HANDLE;
+#endif
+
#endif /* <linux/types.h> */