From: Rich Salz Date: Wed, 17 Dec 2014 22:20:42 +0000 (-0500) Subject: RT3544: Restore MWERKS for NetWare X-Git-Tag: master-post-reformat~135 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=179f6b2f552adb2740f30634d75edc4448f516b5;p=oweals%2Fopenssl.git RT3544: Restore MWERKS for NetWare Reviewed-by: Richard Levitte --- 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=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