summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--acconfig.h4
-rw-r--r--configure.in1
-rw-r--r--include/apr.h.in5
3 files changed, 6 insertions, 4 deletions
diff --git a/acconfig.h b/acconfig.h
index 5ad3008c6..40abfb325 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -56,10 +56,6 @@
/* Make sure we have ssize_t defined to be somethine */
#undef ssize_t
-#if !defined(HAVE_PTHREAD_SIGMASK) && defined(_AIX)
-#define pthread_sigmask sigprocmask
-#endif
-
#if !defined(HAVE_STRCASECMP) && defined(HAVE_STRICMP)
#define strcasecmp(s1,s2) stricmp(s1,s2)
#endif
diff --git a/configure.in b/configure.in
index 184e3f0c6..351c73207 100644
--- a/configure.in
+++ b/configure.in
@@ -126,6 +126,7 @@ AC_CHECK_LIB(truerand,main)
dnl #----------------------------- Checks for Any required Functions
dnl Checks for library functions.
AC_CHECK_FUNCS(pthread_sigmask)
+AC_CHECK_FUNCS(sigthreadmask)
AC_CHECK_FUNCS(strcasecmp stricmp poll setsid)
AC_CHECK_FUNCS(sigaction, [ have_sigaction="1" ], [ have_sigaction="0" ])
AC_CHECK_FUNCS(writev)
diff --git a/include/apr.h.in b/include/apr.h.in
index 5b020a5c2..5513c1668 100644
--- a/include/apr.h.in
+++ b/include/apr.h.in
@@ -117,4 +117,9 @@ Sigfunc *ap_signal(int signo, Sigfunc * func);
#define ap_signal(a,b) signal(a,b)
#endif
+#if !defined(HAVE_PTHREAD_SIGMASK) && defined(HAVE_SIGTHREADMASK)
+#define pthread_sigmask sigthreadmask
+#define HAVE_PTHREAD_SIGMASK 1
+#endif
+
#endif /* APR_H */