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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. From d9acdddb42aef48a9504368019beb1ad91c9a0c4 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?J=C3=B6rg=20Krause?= <jkrause@posteo.de>
  3. Date: Mon, 17 Nov 2014 12:34:05 +0100
  4. Subject: [PATCH 1/1] src/node.cc: 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. ---
  10. src/node.cc | 5 ++++-
  11. 1 file changed, 4 insertions(+), 1 deletion(-)
  12. diff --git a/src/node.cc b/src/node.cc
  13. index 18c743f..cb77f08 100644
  14. --- a/src/node.cc
  15. +++ b/src/node.cc
  16. @@ -82,7 +82,6 @@ typedef int mode_t;
  17. #include "node_script.h"
  18. #include "v8_typed_array.h"
  19. -#include "node_crypto.h"
  20. #include "util.h"
  21. using namespace v8;
  22. @@ -2544,8 +2543,10 @@ static void PrintHelp() {
  23. " --trace-deprecation show stack traces on deprecations\n"
  24. " --v8-options print v8 command line options\n"
  25. " --max-stack-size=val set max v8 stack size (bytes)\n"
  26. +#if HAVE_OPENSSL
  27. " --enable-ssl2 enable ssl2\n"
  28. " --enable-ssl3 enable ssl3\n"
  29. +#endif
  30. "\n"
  31. "Environment variables:\n"
  32. #ifdef _WIN32
  33. @@ -2579,12 +2580,14 @@ static void ParseArgs(int argc, char **argv) {
  34. p = 1 + strchr(arg, '=');
  35. max_stack_size = atoi(p);
  36. argv[i] = const_cast<char*>("");
  37. +#if HAVE_OPENSSL
  38. } else if (strcmp(arg, "--enable-ssl2") == 0) {
  39. SSL2_ENABLE = true;
  40. argv[i] = const_cast<char*>("");
  41. } else if (strcmp(arg, "--enable-ssl3") == 0) {
  42. SSL3_ENABLE = true;
  43. argv[i] = const_cast<char*>("");
  44. +#endif
  45. } else if (strcmp(arg, "--help") == 0 || strcmp(arg, "-h") == 0) {
  46. PrintHelp();
  47. exit(0);
  48. --
  49. 2.1.3