summaryrefslogtreecommitdiff
path: root/src/mod_authn_mysql.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_authn_mysql.c')
-rw-r--r--src/mod_authn_mysql.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mod_authn_mysql.c b/src/mod_authn_mysql.c
index 25e66d38..4a287117 100644
--- a/src/mod_authn_mysql.c
+++ b/src/mod_authn_mysql.c
@@ -30,6 +30,9 @@
#include <stdio.h>
#include <string.h>
+#if defined(HAVE_CRYPT_R) || defined(HAVE_CRYPT)
+#include <unistd.h> /* crypt() */
+#endif
#ifdef HAVE_CRYPT_H
#include <crypt.h>
#endif