summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorwsanchez <wsanchez@13f79535-47bb-0310-9956-ffa450edef68>2002-12-17 07:09:21 +0000
committerwsanchez <wsanchez@13f79535-47bb-0310-9956-ffa450edef68>2002-12-17 07:09:21 +0000
commitf3f2c34e7b928b1e2995daaf774e00d9edad68f9 (patch)
tree104d0f348232d87ab8193c473b1433463ee77b3d /misc
parent0d8e4815e74b4f7c1bd18520408673b796bc000a (diff)
downloadlibapr-f3f2c34e7b928b1e2995daaf774e00d9edad68f9.tar.gz
Define SHUT_RDWR to 2 if it's not already defined.
Submitted by: "Kean Johnston" <jkj@sco.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64185 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc')
-rw-r--r--misc/unix/rand.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/unix/rand.c b/misc/unix/rand.c
index 727fc33c7..a8e0a400a 100644
--- a/misc/unix/rand.c
+++ b/misc/unix/rand.c
@@ -74,6 +74,10 @@
#include <sys/un.h>
#endif
+#ifndef SHUT_RDWR
+#define SHUT_RDWR 2
+#endif
+
#if APR_HAS_RANDOM
APR_DECLARE(apr_status_t) apr_generate_random_bytes(unsigned char *buf,