libgcrypt-1.8.5.patchset revision 5bd3ea58
1From 8f17f183b538b6c5bd20cc69e4dcd34913cd5c3e Mon Sep 17 00:00:00 2001
2From: Jerome Duval <jerome.duval@gmail.com>
3Date: Tue, 5 Aug 2014 16:50:29 +0000
4Subject: haiku patch
5
6
7diff --git a/configure.ac b/configure.ac
8index ce11162..7fc05ad 100644
9--- a/configure.ac
10+++ b/configure.ac
11@@ -761,6 +761,7 @@ fi
12 AC_SEARCH_LIBS(setsockopt, [socket], ,
13 	[AC_SEARCH_LIBS(setsockopt, [socket], , , [-lnsl])])
14 AC_SEARCH_LIBS(setsockopt, [nsl])
15+AC_SEARCH_LIBS(socket, [network])
16 
17 ##################################
18 #### Checks for header files. ####
19-- 
202.19.1
21
22
23From 2eb88a459c5386a816e74231bc04b4f8a5b42b1e Mon Sep 17 00:00:00 2001
24From: Jerome Duval <jerome.duval@gmail.com>
25Date: Wed, 6 Aug 2014 22:08:04 +0000
26Subject: gcc2 patch
27
28
29diff --git a/src/hwf-x86.c b/src/hwf-x86.c
30index 0d3a1f4..32bdfa9 100644
31--- a/src/hwf-x86.c
32+++ b/src/hwf-x86.c
33@@ -103,7 +103,7 @@ get_xgetbv(void)
34   unsigned int t_eax, t_edx;
35 
36   asm volatile
37-    ("xgetbv\n\t"
38+    (".byte 0x0f, 0x01, 0xd0\n\t"
39      : "=a" (t_eax), "=d" (t_edx)
40      : "c" (0)
41     );
42-- 
432.19.1
44
45
46From 9f39e7bd9b26b9938e9cdebf53e3f39b21183097 Mon Sep 17 00:00:00 2001
47From: fbrosson <fbrosson@localhost>
48Date: Wed, 17 Jan 2018 22:03:45 +0000
49Subject: Do not use __GNUC_PATCHLEVEL__ if it's not defined.
50
51
52diff --git a/src/gcrypt.h.in b/src/gcrypt.h.in
53index 75c49a0..794e72d 100644
54--- a/src/gcrypt.h.in
55+++ b/src/gcrypt.h.in
56@@ -82,9 +82,14 @@ extern "C" {
57    underscore they are subject to change without notice. */
58 #ifdef __GNUC__
59 
60+#ifdef __GNUC_PATCHLEVEL__
61 #define _GCRY_GCC_VERSION (__GNUC__ * 10000 \
62                              + __GNUC_MINOR__ * 100 \
63                              + __GNUC_PATCHLEVEL__)
64+#else
65+#define _GCRY_GCC_VERSION (__GNUC__ * 10000 \
66+                             + __GNUC_MINOR__ * 100)
67+#endif
68 
69 #if _GCRY_GCC_VERSION >= 30100
70 #define _GCRY_GCC_ATTR_DEPRECATED __attribute__ ((__deprecated__))
71-- 
722.19.1
73
74