aboutsummaryrefslogtreecommitdiffstats
path: root/main/nginx/musl-crypt-fix.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-12-17 13:11:29 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-12-17 13:11:29 +0000
commit98f1cffd2e8b1a8ff81ba3da9a229e03705bd2c7 (patch)
treed6daf3a83dddce9d40b74ab78ed1a33e98e20d5c /main/nginx/musl-crypt-fix.patch
parent8aa0f149ba7868eaec539db641da554fe1ca4a71 (diff)
downloadaports-98f1cffd2e8b1a8ff81ba3da9a229e03705bd2c7.tar.bz2
aports-98f1cffd2e8b1a8ff81ba3da9a229e03705bd2c7.tar.xz
main/nginx: fix musl build
Diffstat (limited to 'main/nginx/musl-crypt-fix.patch')
-rw-r--r--main/nginx/musl-crypt-fix.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/nginx/musl-crypt-fix.patch b/main/nginx/musl-crypt-fix.patch
new file mode 100644
index 0000000000..2f11fe2e9d
--- /dev/null
+++ b/main/nginx/musl-crypt-fix.patch
@@ -0,0 +1,13 @@
+--- nginx-1.4.4/src/os/unix/ngx_user.c.orig
++++ nginx-1.4.4/src/os/unix/ngx_user.c
+@@ -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);
+