Skip to content

Commit

Permalink
src/node.cc: fix build error without OpenSSL support
Browse files Browse the repository at this point in the history
Signed-off-by: Jörg Krause <[email protected]>

PR-URL: nodejs/node-v0.x-archive#25862
Reviewed-By: jasnell - James M Snell <[email protected]>
  • Loading branch information
Jörg Krause authored and jasnell committed Aug 29, 2015
1 parent 62c8948 commit 16ca077
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ typedef int mode_t;
#include "node_script.h"
#include "v8_typed_array.h"

#include "node_crypto.h"
#include "util.h"

using namespace v8;
Expand Down Expand Up @@ -2564,8 +2563,10 @@ static void PrintHelp() {
" --trace-deprecation show stack traces on deprecations\n"
" --v8-options print v8 command line options\n"
" --max-stack-size=val set max v8 stack size (bytes)\n"
#if HAVE_OPENSSL
" --enable-ssl2 enable ssl2\n"
" --enable-ssl3 enable ssl3\n"
#endif
"\n"
"Environment variables:\n"
#ifdef _WIN32
Expand Down Expand Up @@ -2599,12 +2600,14 @@ static void ParseArgs(int argc, char **argv) {
p = 1 + strchr(arg, '=');
max_stack_size = atoi(p);
argv[i] = const_cast<char*>("");
#if HAVE_OPENSSL
} else if (strcmp(arg, "--enable-ssl2") == 0) {
SSL2_ENABLE = true;
argv[i] = const_cast<char*>("");
} else if (strcmp(arg, "--enable-ssl3") == 0) {
SSL3_ENABLE = true;
argv[i] = const_cast<char*>("");
#endif
} else if (strcmp(arg, "--help") == 0 || strcmp(arg, "-h") == 0) {
PrintHelp();
exit(0);
Expand Down

0 comments on commit 16ca077

Please sign in to comment.