projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89f40f3
)
RT3544: Restore MWERKS for NetWare
author
Rich Salz
<rsalz@openssl.org>
Wed, 17 Dec 2014 22:20:42 +0000
(17:20 -0500)
committer
Rich Salz
<rsalz@openssl.org>
Wed, 17 Dec 2014 22:20:42 +0000
(17:20 -0500)
Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/rand/rand_nw.c
patch
|
blob
|
history
diff --git
a/crypto/rand/rand_nw.c
b/crypto/rand/rand_nw.c
index 9239a72dae2c26a5edca3713e188feaf31b9d59d..91158b89910ab4e2e223ba2970828abf3f82aef9 100644
(file)
--- a/
crypto/rand/rand_nw.c
+++ b/
crypto/rand/rand_nw.c
@@
-154,7
+154,13
@@
int RAND_poll(void)
for( i=2; i<ENTROPY_NEEDED; i++)
{
-#if defined(__GNUC__) && __GNUC__>=2 && !defined(OPENSSL_NO_ASM) && !defined(OPENSSL_NO_INLINE_ASM)
+#ifdef __MWERKS__
+ 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