提交 a0e4b2a0534b5b5a9e1a8fbcc928e7a1c66cfcff

作者 cfsego
1 个父辈 ab50f2e2

bugfix: error "'struct crypt_data' has no member named 'current_salt'" occurs while compiling

正在显示 1 个修改的文件 包含 2 行增加0 行删除
... ... @@ -31,8 +31,10 @@ ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted)
31 31 struct crypt_data cd;
32 32  
33 33 cd.initialized = 0;
  34 +#ifdef __GLIBC__
34 35 /* work around the glibc bug */
35 36 cd.current_salt[0] = ~salt[0];
  37 +#endif
36 38  
37 39 value = crypt_r((char *) key, (char *) salt, &cd);
38 40  
... ...