diff --git a/string.c b/string.c index 711fd9c39e..ad4a115c42 100644 --- a/string.c +++ b/string.c @@ -29,8 +29,11 @@ #include #endif -#ifdef HAVE_CRYPT_R -#include +#if defined HAVE_CRYPT_R +# include +#elif !defined HAVE_CRYPT +# include "missing/crypt.h" +# define HAVE_CRYPT_R 1 #endif #define STRING_ENUMERATORS_WANTARRAY 0 /* next major */