# HG changeset patch # User Maxim Dounin # Date 1419436882 -10800 # Node ID fd6fd02f6a4d1b6889842e49d5a7f895816b2e10 # Parent 53499b86242ef58c39ea1f86c0099770c36f29e7 Fixed building with musl libc (ticket #685). diff -r 53499b86242e -r fd6fd02f6a4d src/os/unix/ngx_user.c --- 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);