summaryrefslogtreecommitdiff
path: root/src/http_auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http_auth.c')
-rw-r--r--src/http_auth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http_auth.c b/src/http_auth.c
index dacf70a4..710d6f1b 100644
--- a/src/http_auth.c
+++ b/src/http_auth.c
@@ -11,7 +11,8 @@
# define _XOPEN_SOURCE
#endif
-#ifdef HAVE_LIBCRYPT
+#if defined(HAVE_LIBCRYPT) && !defined(HAVE_CRYPT)
+/* always assume crypt() is present if we have -lcrypt */
# define HAVE_CRYPT
#endif