From 6e4bba3d758cf6b0849dbca0e0d1174446eb7207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 12 Feb 2021 08:36:21 +0100 Subject: [PATCH 1/2] build: Check for mallinfo2 instead of mallinfo Similar to https://github.com/llvm/llvm-project/commit/e89fcbfad6a3edb203ebdc2b1ead275fe909281a but the tests we use mallinfo() in really aren't important to not worth the effort to differentiate between mallinfo and mallinfo2. Only check for mallinfo2(). --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 729aa3ea19..8677754121 100644 --- a/meson.build +++ b/meson.build @@ -198,7 +198,7 @@ check_functions = [ '_lock_file', 'flockfile', 'mkstemp', - 'mallinfo', + 'mallinfo2', 'sincos', 'sincosf', ] From 0d5957b97aad383720a54b78d5d4a00d90885c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 30 Jan 2021 16:01:54 +0100 Subject: [PATCH 2/2] nativedialog: Remove unused run state --- gtk/gtknativedialog.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/gtk/gtknativedialog.c b/gtk/gtknativedialog.c index 73ad13ea3a..71cceb4f8c 100644 --- a/gtk/gtknativedialog.c +++ b/gtk/gtknativedialog.c @@ -68,10 +68,6 @@ struct _GtkNativeDialogPrivate guint visible : 1; guint modal : 1; - - /* Run state */ - int run_response_id; - GMainLoop *run_loop; /* Non-NULL when in run */ }; enum { @@ -347,9 +343,6 @@ gtk_native_dialog_hide (GtkNativeDialog *self) klass->hide (self); - if (priv->run_loop && g_main_loop_is_running (priv->run_loop)) - g_main_loop_quit (priv->run_loop); - g_object_notify_by_pspec (G_OBJECT (self), native_props[PROP_VISIBLE]); }