glibd/glibd-2.3.0-glib-2.68.patch

60 lines
1.4 KiB
Diff

From b22a87ee6f42806aff5f9173a24cd05995db6cb0 Mon Sep 17 00:00:00 2001
From: Mike Wey <mike@mikewey.eu>
Date: Sat, 3 Apr 2021 14:37:12 +0200
Subject: [PATCH] Fix building for GLib 2.68 / Fedora 34
See Also: #11
---
src/APILookupGLib.txt | 6 ++++--
src/APILookupGio.txt | 6 ++++++
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/APILookupGLib.txt b/src/APILookupGLib.txt
index 6e10e20..d0d0bfc 100644
--- a/src/APILookupGLib.txt
+++ b/src/APILookupGLib.txt
@@ -320,7 +320,7 @@ code: start
if ( date is null )
return false;
- return equal(this, date) != 0;
+ return g_date_time_compare(gDateTime, date.getDateTimeStruct()) != 0;
}
/** */
@@ -331,7 +331,7 @@ code: start
if ( date is null )
return int.min;
- return compare(this, date);
+ return g_date_time_compare(gDateTime, date.getDateTimeStruct());
}
/** */
@@ -1489,6 +1489,8 @@ code: end
struct: TimeZone
noCode: new_local
noCode: new_utc
+#TODO: Proper solution
+version 2.68: noCode: new_identifier
struct: Tree
class: BBTree
diff --git a/src/APILookupGio.txt b/src/APILookupGio.txt
index 8b285f2..87c6780 100644
--- a/src/APILookupGio.txt
+++ b/src/APILookupGio.txt
@@ -401,6 +401,12 @@ array: set_environ env
struct: ThemedIcon
noCode: new
+version 2.68: start
+ struct: TlsCertificate
+ #TODO: Proper solution
+ noCode: new_from_pkcs11_uris
+version: end
+
struct: TlsPassword
out: get_value length
array: get_value Return length