comparison src/mingw-libgcrypt-1-fixes.patch @ 3685:2fe9db1b3f77

libgcrypt: add patch for mingw compile * src/mingw-libgcrypt-1-fixes.patch: new file.
author John Donoghue
date Sat, 16 Aug 2014 22:27:18 -0400
parents
children 0023c034ec4a
comparison
equal deleted inserted replaced
3684:0ea89e795112 3685:2fe9db1b3f77
1 From http://lists.freedesktop.org/archives/gstreamer-commits/2014-February/077094.html
2
3 diff -ur libgcrypt-1.6.1.orig/random/rndhw.c libgcrypt-1.6.1/random/rndhw.c
4 --- libgcrypt-1.6.1.orig/random/rndhw.c 2014-08-16 22:16:09.991066266 -0400
5 +++ libgcrypt-1.6.1/random/rndhw.c 2014-08-16 22:19:19.025936274 -0400
6 @@ -69,7 +69,7 @@
7 nbytes = 0;
8 while (nbytes < 64)
9 {
10 -#if defined(__x86_64__) && defined(__LP64__)
11 +#if defined(__x86_64__) // && defined(__LP64__)
12 asm volatile
13 ("movq %1, %%rdi\n\t" /* Set buffer. */
14 "xorq %%rdx, %%rdx\n\t" /* Request up to 8 bytes. */
15 @@ -123,7 +123,7 @@
16 #ifdef USE_DRNG
17 # define RDRAND_RETRY_LOOPS 10
18 # define RDRAND_INT ".byte 0x0f,0xc7,0xf0"
19 -# if defined(__x86_64__) && defined(__LP64__)
20 +# if defined(__x86_64__) //&& defined(__LP64__)
21 # define RDRAND_LONG ".byte 0x48,0x0f,0xc7,0xf0"
22 # else
23 # define RDRAND_LONG RDRAND_INT