]> granicus.if.org Git - apache/commitdiff
Fix detection of sigwait prototype for NetBSD.
authorRyan Bloom <rbb@apache.org>
Tue, 20 Jun 2000 17:57:25 +0000 (17:57 +0000)
committerRyan Bloom <rbb@apache.org>
Tue, 20 Jun 2000 17:57:25 +0000 (17:57 +0000)
Submitted by: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
Reviewed by: Ryan Bloom

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85633 13f79535-47bb-0310-9956-ffa450edef68

acinclude.m4

index 6aa789792eb2a03e2bc936e12162dc17f86219d5..31f36fc64feddf1e3b914281c734258060f137e5 100644 (file)
@@ -206,6 +206,13 @@ unsigned long foo = INADDR_NONE;
 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.
+     */
+#incluide <pthread.h>
+#endif
 #include <signal.h>
 ],[
   sigset_t set;