From 6bc545dd7baf07c7ef26dd2c8d6987c1a7b87e08 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Wed, 12 Apr 2006 01:55:11 +0000 Subject: The crypt() prototype is in instead of 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 --- support/htdbm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'support/htdbm.c') 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 +#endif #if APR_HAVE_CRYPT_H #include #endif -- cgit v1.2.3