]> git.pld-linux.org Git - packages/cryptlib.git/blob - cryptlib-rdtsc.patch
- set libcl soname
[packages/cryptlib.git] / cryptlib-rdtsc.patch
1 --- cryptlib-3.3.1/random/unix.c.orig   2007-02-01 01:09:22.000000000 +0100
2 +++ cryptlib-3.3.1/random/unix.c        2008-01-08 19:22:02.784685129 +0100
3 @@ -102,8 +102,8 @@
4  #if !( defined( __QNX__ ) || defined( __CYGWIN__ ) )
5    #include <sys/shm.h>
6  #endif /* QNX || Cygwin */
7 -#if defined( __linux__ ) && ( defined(__i386__) || defined(__x86_64__) )
8 -  #include <linux/timex.h>     /* For rdtsc() */
9 +#if defined( __linux__ ) && ( defined(__i586__) || defined(__i686__) || defined(__pentium4__) || defined(__athlon__) || defined(__x86_64__) )
10 +  #define rdtscl(low) __asm__ __volatile__("rdtsc" : "=a" (low) : : "edx")
11  #endif /* Linux on x86 */
12  #include <signal.h>
13  #include <sys/socket.h>
This page took 0.060841 seconds and 3 git commands to generate.