Files
haikuports/dev-libs/libgpg_error/patches/libgpg_error-1.55.patchset
2025-05-06 12:07:31 +00:00

71 lines
1.8 KiB
Plaintext

From 751feac44faab0c11700368fe1e85acef820e0ee Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Tue, 5 Aug 2014 16:25:46 +0000
Subject: haiku patch
diff --git a/src/mkerrcodes2.awk b/src/mkerrcodes2.awk
index 188f7a4..d270f38 100644
--- a/src/mkerrcodes2.awk
+++ b/src/mkerrcodes2.awk
@@ -81,7 +81,7 @@ BEGIN {
/^#/ { next; }
header {
- if ($1 ~ /^[0123456789]+$/)
+ if ($1 ~ /^-?[0123456789]+$/)
{
print "static const int err_code_from_index[] = {";
header = 0;
--
2.48.1
From 96ef2236a03b9560484ed72b067f2414e8117526 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/doc/yat2m.c b/doc/yat2m.c
index a7f072e..3f5ff5c 100644
--- a/doc/yat2m.c
+++ b/doc/yat2m.c
@@ -105,9 +105,14 @@
#if __GNUC__
+# ifdef __GNUC_PATCHLEVEL__
# define MY_GCC_VERSION (__GNUC__ * 10000 \
+ __GNUC_MINOR__ * 100 \
+ __GNUC_PATCHLEVEL__)
+# else
+# define MY_GCC_VERSION (__GNUC__ * 10000 \
+ + __GNUC_MINOR__ * 100)
+# endif
#else
# define MY_GCC_VERSION 0
#endif
diff --git a/src/gpg-error.h.in b/src/gpg-error.h.in
index 4b4c60f..d9bcdd7 100644
--- a/src/gpg-error.h.in
+++ b/src/gpg-error.h.in
@@ -153,9 +153,14 @@ typedef unsigned int gpg_error_t;
* GCC feature test.
*/
#if __GNUC__
+# ifdef __GNUC_PATCHLEVEL__
# define _GPG_ERR_GCC_VERSION (__GNUC__ * 10000 \
+ __GNUC_MINOR__ * 100 \
+ __GNUC_PATCHLEVEL__)
+# else
+# define _GPG_ERR_GCC_VERSION (__GNUC__ * 10000 \
+ + __GNUC_MINOR__ * 100)
+# endif
#else
# define _GPG_ERR_GCC_VERSION 0
#endif
--
2.48.1