summaryrefslogtreecommitdiff
path: root/build/apr_threads.m4
diff options
context:
space:
mode:
Diffstat (limited to 'build/apr_threads.m4')
-rw-r--r--build/apr_threads.m424
1 files changed, 24 insertions, 0 deletions
diff --git a/build/apr_threads.m4 b/build/apr_threads.m4
index 9a9e2a013..05602eea6 100644
--- a/build/apr_threads.m4
+++ b/build/apr_threads.m4
@@ -156,3 +156,27 @@ else
fi
])dnl
+AC_DEFUN(APACHE_CHECK_SIGWAIT_ONE_ARG,[
+ AC_CACHE_CHECK(whether sigwait takes one argument,ac_cv_sigwait_one_arg,[
+ AC_TRY_COMPILE([
+#ifdef __NETBSD__
+ /* When using the unproven-pthreads package, we need to pull in this
+ * header to get a prototype for sigwait(). Else things will fail later
+ * on. XXX Should probably be fixed in the unproven-pthreads package.
+ */
+#include <pthread.h>
+#endif
+#include <signal.h>
+],[
+ sigset_t set;
+
+ sigwait(&set);
+],[
+ ac_cv_sigwait_one_arg=yes
+],[
+ ac_cv_sigwait_one_arg=no
+])])
+ if test "$ac_cv_sigwait_one_arg" = "yes"; then
+ AC_DEFINE(SIGWAIT_TAKES_ONE_ARG,1,[ ])
+ fi
+])