diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2014-12-24 19:01:22 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2014-12-24 19:01:22 +0300 |
commit | b8ee1ec7d3124caca5f92ba5df0822f230d2966e (patch) | |
tree | 97ec9285bd7c5a609f838b896785a05a34b59ae6 /src/os/unix/ngx_user.c | |
parent | fe4b25c731118a87051afe5530b8637c667c363a (diff) | |
download | nginx-b8ee1ec7d3124caca5f92ba5df0822f230d2966e.tar.gz nginx-b8ee1ec7d3124caca5f92ba5df0822f230d2966e.zip |
Fixed building with musl libc (ticket #685).
Diffstat (limited to 'src/os/unix/ngx_user.c')
-rw-r--r-- | src/os/unix/ngx_user.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os/unix/ngx_user.c b/src/os/unix/ngx_user.c index 7a71203cb..3491f1c9e 100644 --- a/src/os/unix/ngx_user.c +++ b/src/os/unix/ngx_user.c @@ -31,8 +31,10 @@ ngx_libc_crypt(ngx_pool_t *pool, u_char *key, u_char *salt, u_char **encrypted) struct crypt_data cd; cd.initialized = 0; +#ifdef __GLIBC__ /* work around the glibc bug */ cd.current_salt[0] = ~salt[0]; +#endif value = crypt_r((char *) key, (char *) salt, &cd); |