mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
18 lines
577 B
Diff
18 lines
577 B
Diff
Upstream-Status: Backport [https://github.com/zeromq/libzmq/pull/1181]
|
|
|
|
--- src/select.cpp.orig
|
|
+++ src/select.cpp
|
|
@@ -159,8 +159,12 @@
|
|
memcpy (&exceptfds, &source_set_err, sizeof source_set_err);
|
|
|
|
// Wait for events.
|
|
+#ifdef ZMQ_HAVE_OSX
|
|
+ struct timeval tv = {(long) (timeout / 1000), timeout % 1000 * 1000};
|
|
+#else
|
|
struct timeval tv = {(long) (timeout / 1000),
|
|
(long) (timeout % 1000 * 1000)};
|
|
+#endif
|
|
#ifdef ZMQ_HAVE_WINDOWS
|
|
int rc = select (0, &readfds, &writefds, &exceptfds,
|
|
timeout ? &tv : NULL);
|