The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / nodejs / 0004-fix-build-error-without-OpenSSL-support.patch
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
9 Signed-off-by: Jörg Krause <jkrause@posteo.de>
10 ---
11  src/node.cc | 5 ++++-
12  1 file changed, 4 insertions(+), 1 deletion(-)
13
14 diff --git a/src/node.cc b/src/node.cc
15 index 18c743f..cb77f08 100644
16 --- a/src/node.cc
17 +++ b/src/node.cc
18 @@ -82,7 +82,6 @@ typedef int mode_t;
19  #include "node_script.h"
20  #include "v8_typed_array.h"
21  
22 -#include "node_crypto.h"
23  #include "util.h"
24  
25  using namespace v8;
26 @@ -2544,8 +2543,10 @@ static void PrintHelp() {
27           "  --trace-deprecation  show stack traces on deprecations\n"
28           "  --v8-options         print v8 command line options\n"
29           "  --max-stack-size=val set max v8 stack size (bytes)\n"
30 +#if HAVE_OPENSSL
31           "  --enable-ssl2        enable ssl2\n"
32           "  --enable-ssl3        enable ssl3\n"
33 +#endif
34           "\n"
35           "Environment variables:\n"
36  #ifdef _WIN32
37 @@ -2579,12 +2580,14 @@ static void ParseArgs(int argc, char **argv) {
38        p = 1 + strchr(arg, '=');
39        max_stack_size = atoi(p);
40        argv[i] = const_cast<char*>("");
41 +#if HAVE_OPENSSL
42      } else if (strcmp(arg, "--enable-ssl2") == 0) {
43        SSL2_ENABLE = true;
44        argv[i] = const_cast<char*>("");
45      } else if (strcmp(arg, "--enable-ssl3") == 0) {
46        SSL3_ENABLE = true;
47        argv[i] = const_cast<char*>("");
48 +#endif
49      } else if (strcmp(arg, "--help") == 0 || strcmp(arg, "-h") == 0) {
50        PrintHelp();
51        exit(0);
52 -- 
53 2.1.3
54