On Mon, Oct 4, 2010 at 3:06 PM, Martin Lucina <m...@kotelna.sk> wrote:
>> Where are those macros already? > > As Martin said, if you define ZMQ_FORCE_POLL or ZMQ_FORCE_SELECT during > compilation of libzmq, this will force the zmq::poller_t and zmq_poll() to > use a poll()- or select()- based implementation irrespective of what > configure thinks. Could you explain how the build currently decides to use e/poll() or select()? What I added was detection for the functions themselves, as you can trivially see from the patch I posted. Obviously it doesn't help detecting whether the target kernel actually implements the call or not but that can be done either by forcing the macros as you suggested, or at runtime by probing. However the current design of the the poller structure doesn't seem to be friendly for that, since it decides at compile time. -Pieter _______________________________________________ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev