summaryrefslogtreecommitdiffstats
path: root/crypto/rand/rand_nw.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2014-12-17 17:20:42 -0500
committerRich Salz <rsalz@openssl.org>2014-12-17 17:20:42 -0500
commit179f6b2f552adb2740f30634d75edc4448f516b5 (patch)
treed8515e22b4fa8eb4a7be1ee736ed266a75f38204 /crypto/rand/rand_nw.c
parent89f40f369f414b52e00f7230b0e3ce99e430a508 (diff)
RT3544: Restore MWERKS for NetWare
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/rand/rand_nw.c')
-rw-r--r--crypto/rand/rand_nw.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/crypto/rand/rand_nw.c b/crypto/rand/rand_nw.c
index 9239a72dae..91158b8991 100644
--- 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