summaryrefslogtreecommitdiffstats
path: root/support/htdbm.c
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2006-04-12 03:55:11 +0200
committerJeff Trawick <trawick@apache.org>2006-04-12 03:55:11 +0200
commit6bc545dd7baf07c7ef26dd2c8d6987c1a7b87e08 (patch)
treef8399018d7c27ff7b453fcdbc9d3f52270c6046f /support/htdbm.c
parentmore explanation for a couple of subtle lines of code (diff)
downloadapache2-6bc545dd7baf07c7ef26dd2c8d6987c1a7b87e08.tar.xz
apache2-6bc545dd7baf07c7ef26dd2c8d6987c1a7b87e08.zip
The crypt() prototype is in <unistd.h> instead of <crypt.h>
on HP-UX. We had no prototype for crypt() there. In 64-bit mode, a crash occurred because the pointer returned by crypt() was truncated before we passed the pointer to apr_cpystrn(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@393364 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/htdbm.c')
-rw-r--r--support/htdbm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/support/htdbm.c b/support/htdbm.c
index 2c71834eb1..84ab8f07e9 100644
--- a/support/htdbm.c
+++ b/support/htdbm.c
@@ -48,6 +48,9 @@
#include "apr_xlate.h"
#endif /*APR_CHARSET_EBCDIC*/
+#if APR_HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#if APR_HAVE_CRYPT_H
#include <crypt.h>
#endif