summaryrefslogtreecommitdiff
path: root/acconfig.h
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2001-02-21 20:49:28 +0000
committerRyan Bloom <rbb@apache.org>2001-02-21 20:49:28 +0000
commit18b023ca77902601cf9cd553caecf5574edb342e (patch)
tree24f4bad84e29a0d8402ad76a7ebb84bff107e0cc /acconfig.h
parentfe1d0348db9f6654fe2d1e8152c5495593091d22 (diff)
downloadapr-18b023ca77902601cf9cd553caecf5574edb342e.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: https://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 */