]> git.proxmox.com Git - mirror_ovs.git/blobdiff - lib/latch.h
flow: Fix buffer overread in flow_hash_symmetric_l3l4().
[mirror_ovs.git] / lib / latch.h
index 0b6e8a3c988d3960fbf4b1df1749cf1f045360c4..3c0b842a1c0c165af929e33befda603684d4786b 100644 (file)
 #include "util.h"
 
 struct latch {
+#ifndef _WIN32
     int fds[2];
+#else
+    HANDLE wevent;
+    bool is_set;
+#endif
 };
 
 void latch_init(struct latch *);
@@ -37,6 +42,6 @@ void latch_set(struct latch *);
 
 bool latch_is_set(const struct latch *);
 void latch_wait_at(const struct latch *, const char *where);
-#define latch_wait(latch) latch_wait_at(latch, SOURCE_LOCATOR)
+#define latch_wait(latch) latch_wait_at(latch, OVS_SOURCE_LOCATOR)
 
 #endif /* latch.h */