summaryrefslogtreecommitdiff
path: root/acconfig.h
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2001-02-21 20:49:28 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2001-02-21 20:49:28 +0000
commitadc5b77f4f3b56421d55fe50553a925942dd3abd (patch)
tree24f4bad84e29a0d8402ad76a7ebb84bff107e0cc /acconfig.h
parente4d95d836af0e84c51e9f8f5e7bac140d52b1f93 (diff)
downloadlibapr-adc5b77f4f3b56421d55fe50553a925942dd3abd.tar.gz
Add apr_sigwait to the apr_private.h file. This allows us to remove
a couple of #ifdefs, and standardize some code. This macro comes directly from the Apache code. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61277 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'acconfig.h')
-rw-r--r--acconfig.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/acconfig.h b/acconfig.h
index 25d28f6c8..98e0154b3 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -53,4 +53,10 @@
#define BEOS_BONE 1
#endif
+#ifdef SIGWAIT_TAKES_ONE_ARG
+#define apr_sigwait(a,b) ((*(b)=sigwait((a)))<0?-1:0)
+#else
+#define apr_sigwait(a,b) sigwait((a),(b))
+#endif
+
#endif /* APR_PRIVATE_H */