summaryrefslogtreecommitdiff
path: root/threadproc
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2003-07-07 14:49:48 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2003-07-07 14:49:48 +0000
commit8a3a3508e97ae81cb07a9d8b943ca7aafedb5a85 (patch)
treeddb16c69cc6633bd11e1081994e57fd27048c6e8 /threadproc
parent0bb378642c02a68124fd4686ea54a9f8102849b7 (diff)
downloadlibapr-8a3a3508e97ae81cb07a9d8b943ca7aafedb5a85.tar.gz
Pick up the result of the AC_DECL_SYS_SIGLIST macro correctly with
recent versions of autoconf. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64562 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc')
-rw-r--r--threadproc/unix/signals.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/threadproc/unix/signals.c b/threadproc/unix/signals.c
index af22651fb..c2dd2775a 100644
--- a/threadproc/unix/signals.c
+++ b/threadproc/unix/signals.c
@@ -139,8 +139,9 @@ APR_DECLARE(apr_sigfunc_t *) apr_signal(int signo, apr_sigfunc_t * func)
#endif /* HAVE_SIGACTION */
-
-#ifdef SYS_SIGLIST_DECLARED
+/* AC_DECL_SYS_SIGLIST defines either of these symbols depending
+ * on the version of autoconf used. */
+#if defined(SYS_SIGLIST_DECLARED) || defined(HAVE_DECL_SYS_SIGLIST)
void apr_signal_init(apr_pool_t *pglobal)
{
@@ -150,7 +151,7 @@ const char *apr_signal_description_get(int signum)
return sys_siglist[signum];
}
-#else /* !SYS_SIGLIST_DECLARED */
+#else /* !(SYS_SIGLIST_DECLARED || HAVE_DECL_SYS_SIGLIST) */
/* we need to roll our own signal description stuff */
@@ -298,7 +299,7 @@ const char *apr_signal_description_get(int signum)
: "unknown signal (number)";
}
-#endif /* SYS_SIGLIST_DECLARED */
+#endif /* SYS_SIGLIST_DECLARED || HAVE_DECL_SYS_SIGLIST */
#if APR_HAS_THREADS && (HAVE_SIGSUSPEND || APR_HAVE_SIGWAIT) && !defined(OS2)