summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAzat Khuzhin <a3at.mail@gmail.com>2017-03-06 00:05:50 +0300
committerAzat Khuzhin <a3at.mail@gmail.com>2017-03-08 13:31:55 +0300
commit66a4eb0c3ae3b1f22b084b2d3aeb5c872f37efbd (patch)
treefcf98c99076366fd494261cc1420bd6417a01298 /cmake
parentb2b4b4d74e78a3e4fe7a74224d1e6aada5bde351 (diff)
downloadlibevent-66a4eb0c3ae3b1f22b084b2d3aeb5c872f37efbd.tar.gz
Check for WNOWAIT in waitpid() in runtime (not in cmake/configure)
Because checking in cmake breaks cross-compiling. Introduced-in: 43eb56c7c738e3642f0981e3dd6ab9e082eec798. Fixes: #482 Fixes: #462 Refs: #475 v2: use waitid() with WNOWAIT v3: use WNOWAIT only if it available in waitpid(), because not all netbsd supports it
Diffstat (limited to 'cmake')
-rw-r--r--cmake/CheckWaitpidSupportWNOWAIT.cmake18
1 files changed, 0 insertions, 18 deletions
diff --git a/cmake/CheckWaitpidSupportWNOWAIT.cmake b/cmake/CheckWaitpidSupportWNOWAIT.cmake
deleted file mode 100644
index 1a73db37..00000000
--- a/cmake/CheckWaitpidSupportWNOWAIT.cmake
+++ /dev/null
@@ -1,18 +0,0 @@
-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)