[zeromq-dev] disabling epoll()
Martin Lucina
mato at kotelna.sk
Mon Oct 4 15:09:39 CEST 2010
sustrik at 250bpm.com said:
> On 10/04/2010 02:49 PM, Martin Lucina wrote:
>
> >> 0MQ devs: Wouldn't it be better if we checked for the availability of
> >> different polling mechanisms during the configure phase?
> >
> > Not possible. configure can only determine what your target C library is,
> > it knows nothing about your target kernel.
>
> What I recall Malo told me long time ago is that autoconf is able to
> compile and run a small user-supplied test program and defined the macro
> depending on whether it succeeds or fails.
Yes, of course. But the point is this is only of any help when you're not
cross-compiling since the test program is run on the *build* system, not on
the *target* system.
Hence, in the original poster's case it won't help.
Again, we have -DZMQ_FORCE_POLL, -DZMQ_FORCE_SELECT, for a very special
case like this ("supporting" a cross-build to an ancient Linux 2.4.x
kernel) it should be all we need.
-mato
More information about the zeromq-dev
mailing list