diff --git a/missing/crypt.c b/missing/crypt.c index d55937865f..8ffe9c7108 100644 --- a/missing/crypt.c +++ b/missing/crypt.c @@ -347,7 +347,7 @@ STATIC void init_perm(C_block perm[64/CHUNKBITS][1<KS) #define cryptresult (data->cryptresult) @@ -356,8 +356,11 @@ static const C_block constdatablock; /* encryption constant */ static void des_setkey_r(const unsigned char *key, struct crypt_data *data); static void des_cipher_r(const unsigned char *in, unsigned char *out, long salt, int num_iter, struct crypt_data *data); +#ifdef USE_NONREENTRANT_CRYPT static struct crypt_data default_crypt_data; +#endif +#ifdef USE_NONREENTRANT_CRYPT /* * Return a pointer to static data consisting of the "setting" * followed by an encryption produced by the "key" and "setting". @@ -367,6 +370,7 @@ crypt(const char *key, const char *setting) { return crypt_r(key, setting, &default_crypt_data); } +#endif /* * Return a pointer to data consisting of the "setting" followed by an @@ -780,11 +784,13 @@ init_perm(C_block perm[64/CHUNKBITS][1<