You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.2 KiB

  1. Index: nginx-1.4.7/src/os/unix/ngx_linux_config.h
  2. ===================================================================
  3. --- nginx-1.4.7.orig/src/os/unix/ngx_linux_config.h
  4. +++ nginx-1.4.7/src/os/unix/ngx_linux_config.h
  5. @@ -51,7 +51,6 @@
  6. #include <malloc.h> /* memalign() */
  7. #include <limits.h> /* IOV_MAX */
  8. #include <sys/ioctl.h>
  9. -#include <sys/sysctl.h>
  10. #include <crypt.h>
  11. #include <sys/utsname.h> /* uname() */
  12. --- nginx-1.2.7/src/os/unix/ngx_user.c
  13. +++ nginx-1.2.7-patched/src/os/unix/ngx_user.c
  14. @@ -31,8 +31,6 @@
  15. struct crypt_data cd;
  16. cd.initialized = 0;
  17. - /* work around the glibc bug */
  18. - cd.current_salt[0] = ~salt[0];
  19. value = crypt_r((char *) key, (char *) salt, &cd);
  20. diff --git a/auto/lib/openssl/conf b/auto/lib/openssl/conf
  21. index 528ee17..73ef359 100644
  22. --- a/auto/lib/openssl/conf
  23. +++ b/auto/lib/openssl/conf
  24. @@ -47,7 +47,7 @@ else
  25. ngx_feature_run=no
  26. ngx_feature_incs="#include <openssl/ssl.h>"
  27. ngx_feature_path=
  28. - ngx_feature_libs="-lssl -lcrypto"
  29. + ngx_feature_libs="-lssl -lcrypto -lz"
  30. ngx_feature_test="SSL_library_init()"
  31. . auto/feature