From bc3d4f71b74b1330206f2846b70bb9b9f4507c0b Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 18 Nov 2019 11:50:27 -0500 Subject: [PATCH] compile fix for glib versions < 2.30 closes #879 Change-Id: I01e176a1e3479350ba389b35a49f057292f6ad3d --- daemon/call.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon/call.c b/daemon/call.c index de3d95f28..a21fc84c6 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -1417,8 +1417,12 @@ static void __generate_crypto(const struct sdp_ng_flags *flags, struct call_medi } // flush out crypto suites we ended up not using - leave only one +#if GLIB_CHECK_VERSION(2,30,0) if (!g_queue_remove(cpq_in, cps_in)) ilog(LOG_ERR, "BUG: incoming crypto suite not found in queue"); +#else + g_queue_remove(cpq_in, cps_in); +#endif crypto_params_sdes_queue_clear(cpq_in); g_queue_push_tail(cpq_in, cps_in);