summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-crypt/pinentry/files/pinentry-gmem.patch')
-rw-r--r--app-crypt/pinentry/files/pinentry-gmem.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/app-crypt/pinentry/files/pinentry-gmem.patch b/app-crypt/pinentry/files/pinentry-gmem.patch
new file mode 100644
index 000000000000..78121e6b3dbe
--- /dev/null
+++ b/app-crypt/pinentry/files/pinentry-gmem.patch
@@ -0,0 +1,45 @@
+Workaround for API change in >=glib-2.16.1, bug #213382
+
+This is not the final solution, but the patches posted on the mailing-list
+cause more breakage than they help to solve the problem.
+
+Index: pinentry/gtk+-2/gtksecentry.c
+===================================================================
+--- pinentry/gtk+-2/gtksecentry.c (revision 181)
++++ pinentry/gtk+-2/gtksecentry.c (working copy)
+@@ -270,7 +270,11 @@
+
+
+ gpointer
++#if GLIB_CHECK_VERSION(2, 16, 1)
++g_malloc(gsize size)
++#else
+ g_malloc(gulong size)
++#endif
+ {
+ gpointer p;
+
+@@ -288,7 +292,11 @@
+ }
+
+ gpointer
++#if GLIB_CHECK_VERSION(2, 16, 1)
++g_malloc0(gsize size)
++#else
+ g_malloc0(gulong size)
++#endif
+ {
+ gpointer p;
+
+@@ -308,7 +316,11 @@
+ }
+
+ gpointer
++#if GLIB_CHECK_VERSION(2, 16, 1)
++g_realloc(gpointer mem, gsize size)
++#else
+ g_realloc(gpointer mem, gulong size)
++#endif
+ {
+ gpointer p;
+