diff src/os/unix/ngx_user.c @ 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 6ccd3a50b40f
children 457ec43dd8d5
line wrap: on
line diff
--- 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 
     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);