summaryrefslogtreecommitdiff
path: root/src/zmq.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zmq.cpp')
-rw-r--r--src/zmq.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/zmq.cpp b/src/zmq.cpp
index 1ea08f8..0f54fab 100644
--- a/src/zmq.cpp
+++ b/src/zmq.cpp
@@ -352,6 +352,9 @@ int zmq_poll (zmq_pollitem_t *items_, int nitems_, long timeout_)
#if defined ZMQ_HAVE_WINDOWS
Sleep (timeout_ > 0 ? timeout_ : INFINITE);
return 0;
+#elif defined ZMQ_HAVE_ANDROID
+ usleep (timeout_ * 1000);
+ return 0;
#else
return usleep (timeout_ * 1000);
#endif