Files
haikuports/dev-libs/libgpg_error/patches/libgpg_error-1.47.patchset
2023-08-23 07:49:06 +00:00

71 lines
1.8 KiB
Plaintext

From 6677fbf3c265b5b911ef8287aac9beafb2bf5067 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.37.3
From b37c66b911c7a74cfcfa44bc14e055b8b7b51778 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 c2806e3..0736eb8 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 bce028e..3648875 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.37.3