Files
haikuports/dev-libs/libgcrypt/patches/libgcrypt-1.10.2.patchset
2023-08-23 10:09:32 +00:00

97 lines
2.4 KiB
Plaintext

From c1662796cede9d153caa7d6c613220cd6e261c4e Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Tue, 5 Aug 2014 16:50:29 +0000
Subject: haiku patch
diff --git a/configure.ac b/configure.ac
index 24ec2eb..374057a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -839,6 +839,7 @@ fi
AC_SEARCH_LIBS(setsockopt, [socket], ,
[AC_SEARCH_LIBS(setsockopt, [socket], , , [-lnsl])])
AC_SEARCH_LIBS(setsockopt, [nsl])
+AC_SEARCH_LIBS(socket, [network])
##################################
#### Checks for header files. ####
--
2.37.3
From 9849f6ca4ddf10217fc4abda046183f988b01b56 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Wed, 6 Aug 2014 22:08:04 +0000
Subject: gcc2 patch
diff --git a/src/hwf-x86.c b/src/hwf-x86.c
index a1aa02e..ae73360 100644
--- a/src/hwf-x86.c
+++ b/src/hwf-x86.c
@@ -108,7 +108,7 @@ get_xgetbv(void)
unsigned int t_eax, t_edx;
asm volatile
- ("xgetbv\n\t"
+ (".byte 0x0f, 0x01, 0xd0\n\t"
: "=a" (t_eax), "=d" (t_edx)
: "c" (0)
);
--
2.37.3
From 17e974883a71cd2b2fba11cc0a3cd4804e68971a Mon Sep 17 00:00:00 2001
From: fbrosson <fbrosson@localhost>
Date: Wed, 17 Jan 2018 22:03:45 +0000
Subject: Do not use __GNUC_PATCHLEVEL__ if it's not defined.
diff --git a/src/gcrypt.h.in b/src/gcrypt.h.in
index 58581da..d744765 100644
--- a/src/gcrypt.h.in
+++ b/src/gcrypt.h.in
@@ -74,9 +74,14 @@ extern "C" {
underscore they are subject to change without notice. */
#ifdef __GNUC__
+#ifdef __GNUC_PATCHLEVEL__
#define _GCRY_GCC_VERSION (__GNUC__ * 10000 \
+ __GNUC_MINOR__ * 100 \
+ __GNUC_PATCHLEVEL__)
+#else
+#define _GCRY_GCC_VERSION (__GNUC__ * 10000 \
+ + __GNUC_MINOR__ * 100)
+#endif
#if _GCRY_GCC_VERSION >= 30100
#define _GCRY_GCC_ATTR_DEPRECATED __attribute__ ((__deprecated__))
--
2.37.3
From a328f62b7740fe91ef3de567564816a7a8863f1b Mon Sep 17 00:00:00 2001
From: Begasus <begasus@gmail.com>
Date: Wed, 23 Aug 2023 11:57:20 +0200
Subject: Fixes: field `area' has incomplete type with gcc2
diff --git a/cipher/pubkey.c b/cipher/pubkey.c
index 2341c86..2885c82 100644
--- a/cipher/pubkey.c
+++ b/cipher/pubkey.c
@@ -1275,7 +1275,7 @@ _gcry_pk_selftest (int algo, int extended, selftest_report_func_t report)
struct pk_random_override {
size_t len;
- unsigned char area[];
+ unsigned char area[1];
};
gpg_err_code_t
--
2.37.3