Browse Source

compile fix for glib versions < 2.30

closes #879

Change-Id: I01e176a1e3479350ba389b35a49f057292f6ad3d
changes/26/35726/1
Richard Fuchs 6 years ago
parent
commit
bc3d4f71b7
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      daemon/call.c

+ 4
- 0
daemon/call.c View File

@ -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 // 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)) if (!g_queue_remove(cpq_in, cps_in))
ilog(LOG_ERR, "BUG: incoming crypto suite not found in queue"); 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); crypto_params_sdes_queue_clear(cpq_in);
g_queue_push_tail(cpq_in, cps_in); g_queue_push_tail(cpq_in, cps_in);


Loading…
Cancel
Save