zeromq / libzmq

ZeroMQ core engine in C++, implements ZMTP/3.1
https://www.zeromq.org
Mozilla Public License 2.0
9.45k stars 2.34k forks source link

Problem: cmake search for kqueue missing headers #4659

Closed minrk closed 4 months ago

minrk commented 4 months ago

Result: on some BSD platforms (at least openbsd 7.4), cmake build will default to POLLER=poll instead of POLLER=kqueue.

Solution: include sys/types.h and sys/time.h as documented by kqueue and used in autotools

fixes kqueue detection on openbsd. This avoids the error in #3957, but the error remains when building with explicit -DPOLLER=poll, or ./configure --with-poller=poll .