[openssl-dev] ossl-1.0.2 needs a tweak for CodeWarrior4
NormW
normw at gknw.net
Sat Feb 14 22:57:58 UTC 2015
G/Morning,
Found 1.0.2\crypto\rand\rand_nw.c needs a tweak for CW4 to compile:
--- rand_nw.c.orig 2015-01-23 01:58:32.000000000 +1100
+++ rand_nw.c 2015-01-28 14:33:04.187500000 +1100
@@ -155,8 +155,11 @@
for (i = 2; i < ENTROPY_NEEDED; i++) {
# ifdef __MWERKS__
- asm {
- rdtsc mov tsc, eax}
+ asm
+ {
+ rdtsc
+ mov tsc, eax
+ }
# elif defined(__GNUC__) && __GNUC__>=2 && !defined(OPENSSL_NO_ASM) &&
!defined(OPENSSL_NO_INLINE_ASM)
asm volatile ("rdtsc":"=a" (tsc)::"edx");
# endif
The acceptable format is the same as 1.0.1l, so no idea where the 1.0.2
version came from, unless done by hand. Otherwise 1.0.2 builds without
issue.
Norm
More information about the openssl-dev
mailing list