From 9e3d76b638bcbd877eb7fe716190c0424c95a9d2 Mon Sep 17 00:00:00 2001 From: Andrea Azzarone Date: Mon, 23 Oct 2017 12:50:46 +0200 Subject: Include to fix a build issues with g++7. --- src/gmenuharness/MatchUtils.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gmenuharness/MatchUtils.cpp b/src/gmenuharness/MatchUtils.cpp index 1eeaf52..dd4a247 100644 --- a/src/gmenuharness/MatchUtils.cpp +++ b/src/gmenuharness/MatchUtils.cpp @@ -18,6 +18,8 @@ #include +#include + #include using namespace std; @@ -33,7 +35,7 @@ void waitForCore (GObject * obj, const string& signalName, unsigned int timeout) shared_ptr loop(g_main_loop_new(nullptr, false), &g_main_loop_unref); /* Our two exit criteria */ - util::ResourcePtr> signal( + util::ResourcePtr> signal( g_signal_connect_swapped(obj, signalName.c_str(), G_CALLBACK(g_main_loop_quit), loop.get()), [obj](gulong s) @@ -41,7 +43,7 @@ void waitForCore (GObject * obj, const string& signalName, unsigned int timeout) g_signal_handler_disconnect(obj, s); }); - util::ResourcePtr> timer(g_timeout_add(timeout, + util::ResourcePtr> timer(g_timeout_add(timeout, [](gpointer user_data) -> gboolean { g_main_loop_quit((GMainLoop *)user_data); -- cgit v1.2.3