From 2b9fc1b2d9cce2f2b635813b7787b40fa334132b Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Fri, 24 Feb 2012 10:42:31 -0400 Subject: [PATCH] mgmtops: Add missing compatibility header include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit glib-compat.h needs to be included when either g_slist_free_full() or g_list_free_full() is used on a C file. Otherwise, it will fail to build on older (supported) Glib versions that lack these functions. Fixes this build error on GLib 2.24.1: plugins/mgmtops.c: In function ‘remove_controller’: plugins/mgmtops.c:180: error: implicit declaration of function ‘g_slist_free_full’ --- plugins/mgmtops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c index 5740e9c5e..95fbe8b08 100644 --- a/plugins/mgmtops.c +++ b/plugins/mgmtops.c @@ -49,6 +49,7 @@ #include "event.h" #include "oob.h" #include "eir.h" +#include "glib-compat.h" #define MGMT_BUF_SIZE 1024 -- 2.47.3