aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--string.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/string.c b/string.c
index fd17355346..04737f0713 100644
--- a/string.c
+++ b/string.c
@@ -30,7 +30,9 @@
#endif
#if defined HAVE_CRYPT_R
+# if defined HAVE_CRYPT_H
# include <crypt.h>
+# endif
#elif !defined HAVE_CRYPT
# include "missing/crypt.h"
# define HAVE_CRYPT_R 1