From 85851d312771f043263257bcf972bd11cadec50a Mon Sep 17 00:00:00 2001 From: Ghislain Putois Date: Mon, 15 Aug 2011 19:39:21 +0200 Subject: Preliminary Android support Some small changes to prepare a cross-compilation for the Android platform Signed-off-by: Ghislain Putois Signed-off-by: Martin Sustrik --- src/thread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/thread.cpp') diff --git a/src/thread.cpp b/src/thread.cpp index 06a47fc..d1c6729 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -59,15 +59,15 @@ extern "C" { static void *thread_routine (void *arg_) { - #if !defined ZMQ_HAVE_OPENVMS - // Following code will guarantee more predictable latecnies as it'll +#if !defined ZMQ_HAVE_OPENVMS && !defined ZMQ_HAVE_ANDROID + // Following code will guarantee more predictable latencies as it'll // disallow any signal handling in the I/O thread. sigset_t signal_set; int rc = sigfillset (&signal_set); errno_assert (rc == 0); rc = pthread_sigmask (SIG_BLOCK, &signal_set, NULL); posix_assert (rc); - #endif +#endif zmq::thread_t *self = (zmq::thread_t*) arg_; self->tfn (self->arg); -- cgit v1.2.3