mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
19 lines
326 B
CMake
19 lines
326 B
CMake
|
include(CheckCSourceRuns)
|
||
|
|
||
|
check_c_source_runs(
|
||
|
"
|
||
|
#include <unistd.h>
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/wait.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int
|
||
|
main(int argc, char** argv)
|
||
|
{
|
||
|
pid_t pid;
|
||
|
int status;
|
||
|
if ((pid = fork()) == 0) _exit(0);
|
||
|
_exit(waitpid(pid, &status, WNOWAIT) == -1);
|
||
|
}"
|
||
|
EVENT__HAVE_WAITPID_WITH_WNOWAIT)
|