[zeromq-dev] platform checks.
George Neill
georgen at neillnet.com
Wed Nov 12 18:41:15 CET 2008
Martin,
> Sure, I will test. It looks like theres a harmless new bug introduced!
>
>>>>>>> int flags; <<<<<<
> #if defined ZMQ_HAVE_LINUX || defined ZMQ_HAVE_OSX || defined ZMQ_HAVE_SOLARIS \
> || defined ZMQ_HAVE_FREEBSD || defined ZMQ_HAVE_OPENBSD \
> || defined ZMQ_HAVE_QNXNTO
>
> if (-1 == (flags = fcntl (r, F_GETFL, 0)))
> flags = 0;
>
> // Set to non-blocking mode.
> rc = fcntl (r, F_SETFL, flags | O_NONBLOCK);
> errno_assert (rc != -1);
>
> #elif
> #error nonblocking sockets not supported on this platform
> #endif
Also the #elif should be #else!
[ 4%] Building CXX object zmq/CMakeFiles/zmq.dir/api_thread.o
"/home/gneill/zmq/trunk/zmq/ysocketpair.hpp", line 190.7: 1540-0827
(S) The constant expression on the #elif directive contains a syntax
error at "".
make[2]: *** [zmq/CMakeFiles/zmq.dir/api_thread.o] Error 1
make[1]: *** [zmq/CMakeFiles/zmq.dir/all] Error 2
make: *** [all] Error 2
Thanks,
George.
More information about the zeromq-dev
mailing list