Mercurial > hg > nginx
changeset 5955:fd6fd02f6a4d
Fixed building with musl libc (ticket #685).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 24 Dec 2014 19:01:22 +0300 |
parents | 53499b86242e |
children | 4045818c726a |
files | src/os/unix/ngx_user.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/os/unix/ngx_user.c Wed Dec 24 18:53:38 2014 +0300 +++ b/src/os/unix/ngx_user.c Wed Dec 24 19:01:22 2014 +0300 @@ -31,8 +31,10 @@ 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);