cmake ZMQ_HAVE_EVENTFD_CLOEXEC examples

zeromq/libzmq builds/cmake/Modules/ZMQSourceRunChecks.cmake :21

check_c_source_runs(
    "
#include <sys/eventfd.h>

int main(int argc, char *argv [])
{
    int s = eventfd (0, EFD_CLOEXEC);
    return(s == -1);
}
"
    ZMQ_HAVE_EVENTFD_CLOEXEC)

asset-group/5ghoul-5g-nr-attacks libs/libzmq/builds/cmake/Modules/ZMQSourceRunChecks.cmake :21

check_c_source_runs(
    "
#include <sys/eventfd.h>

int main(int argc, char *argv [])
{
    int s = eventfd (0, EFD_CLOEXEC);
    return(s == -1);
}
"
    ZMQ_HAVE_EVENTFD_CLOEXEC)