File pacemaker-remoted-compilation-glib-older.patch of Package pacemaker.8397

commit 3246a236f7d959455137cc0e56a6a9d78d3ba5ec
Author: Klaus Wenninger <klaus.wenninger@aon.at>
Date:   Tue Mar 21 02:54:50 2017 +0100

    Fix: pacemaker_remoted: Allow compilation with glib older 2.36

diff --git a/lrmd/main.c b/lrmd/main.c
index a3aa08f3a..0e1223cac 100644
--- a/lrmd/main.c
+++ b/lrmd/main.c
@@ -382,12 +382,8 @@ void handle_shutdown_nack()
     if (shutting_down) {
         crm_info("Received shutdown nack");
         if (shutdown_ack_timer > 0) {
-            GSource *timer =
-                g_main_context_find_source_by_id(NULL, shutdown_ack_timer);
-
-            if (timer != NULL) {
-                g_source_set_ready_time(timer, 0);
-            }
+            g_source_remove(shutdown_ack_timer);
+            shutdown_ack_timer = g_timeout_add(0, lrmd_exit, NULL);
         }
         return;
     }
openSUSE Build Service is sponsored by