diff options
author | Andrei Sedoi <bsnote@gmail.com> | 2013-06-12 18:47:10 +0300 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-06-13 13:27:58 +0200 |
commit | 884b25356f20cd95412d86a413283c98d0ac5ed2 (patch) | |
tree | f37bc105665a6f72983ac659a60596b4352bf155 | |
parent | e8500274e04bab2eb630b4000cbd35be8d23d3fd (diff) | |
download | node-884b25356f20cd95412d86a413283c98d0ac5ed2.tar.gz |
openssl: add missing configuration pieces for MIPS
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | deps/openssl/config/opensslconf.h | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -381,6 +381,7 @@ def host_arch_cc(): '__x86_64__' : 'x64', '__i386__' : 'ia32', '__arm__' : 'arm', + '__mips__' : 'mips', } rtn = 'ia32' # default @@ -402,6 +403,7 @@ def host_arch_win(): 'AMD64' : 'x64', 'x86' : 'ia32', 'arm' : 'arm', + 'mips' : 'mips', } return matchup.get(arch, 'ia32') diff --git a/deps/openssl/config/opensslconf.h b/deps/openssl/config/opensslconf.h index 9bf23692d..5dd3d411a 100644 --- a/deps/openssl/config/opensslconf.h +++ b/deps/openssl/config/opensslconf.h @@ -179,7 +179,7 @@ * - elder Alpha because it lacks byte load/store instructions; */ # undef RC4_INT -# if defined(__arm__) +# if defined(__arm__) || defined(__mips__) # define RC4_INT unsigned char # else # define RC4_INT unsigned int @@ -194,7 +194,7 @@ # define RC4_CHUNK unsigned long long # elif (defined(_M_X64) || defined(__x86_64__)) && !defined(_WIN32) # define RC4_CHUNK unsigned long -# elif defined(__arm__) +# elif defined(__arm__) || defined(__mips__) # define RC4_CHUNK unsigned long # else /* On x86 RC4_CHUNK is not defined */ @@ -253,7 +253,7 @@ #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H) # define CONFIG_HEADER_BF_LOCL_H # undef BF_PTR -# if defined(__arm__) +# if defined(__arm__) || defined(__mips__) # define BF_PTR # endif #endif /* HEADER_BF_LOCL_H */ |