summaryrefslogtreecommitdiff
path: root/tests/wocky-http-proxy-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wocky-http-proxy-test.c')
-rw-r--r--tests/wocky-http-proxy-test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/wocky-http-proxy-test.c b/tests/wocky-http-proxy-test.c
index ebe711c..9567401 100644
--- a/tests/wocky-http-proxy-test.c
+++ b/tests/wocky-http-proxy-test.c
@@ -101,7 +101,11 @@ static void
run_in_thread (HttpTestData *data,
GThreadFunc func)
{
+#if GLIB_CHECK_VERSION (2, 31, 0)
+ data->thread = g_thread_new ("server_thread", func, data);
+#else
data->thread = g_thread_create (func, data, TRUE, NULL);
+#endif
g_assert (data->thread != NULL);
}