0004-fix-build-error-without-OpenSSL-support.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. From 6bfa497dceb83de5257c64da59fbcf6a32d83305 Mon Sep 17 00:00:00 2001
  2. From: Martin Bark <martin@barkynet.com>
  3. Date: Tue, 30 Jun 2015 09:45:07 +0100
  4. Subject: [PATCH 4/4] fix build error without OpenSSL support
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Signed-off-by: Jörg Krause <jkrause@posteo.de>
  9. [Martin: adapt to 0.12.5]
  10. Signed-off-by: Martin Bark <martin@barkynet.com>
  11. ---
  12. src/node.cc | 4 ++++
  13. 1 file changed, 4 insertions(+)
  14. diff --git a/src/node.cc b/src/node.cc
  15. index e669706..d43b791 100644
  16. --- a/src/node.cc
  17. +++ b/src/node.cc
  18. @@ -2934,8 +2934,10 @@ static void PrintHelp() {
  19. " present.\n"
  20. #endif
  21. #endif
  22. +#if HAVE_OPENSSL
  23. " --enable-ssl2 enable ssl2\n"
  24. " --enable-ssl3 enable ssl3\n"
  25. +#endif
  26. "\n"
  27. "Environment variables:\n"
  28. #ifdef _WIN32
  29. @@ -3003,10 +3005,12 @@ static void ParseArgs(int* argc,
  30. } else if (strcmp(arg, "--version") == 0 || strcmp(arg, "-v") == 0) {
  31. printf("%s\n", NODE_VERSION);
  32. exit(0);
  33. +#if HAVE_OPENSSL
  34. } else if (strcmp(arg, "--enable-ssl2") == 0) {
  35. SSL2_ENABLE = true;
  36. } else if (strcmp(arg, "--enable-ssl3") == 0) {
  37. SSL3_ENABLE = true;
  38. +#endif
  39. } else if (strcmp(arg, "--help") == 0 || strcmp(arg, "-h") == 0) {
  40. PrintHelp();
  41. exit(0);
  42. --
  43. 2.1.4