diff options
Diffstat (limited to 'tests/check/elements/souphttpsrc.c')
-rw-r--r-- | tests/check/elements/souphttpsrc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/check/elements/souphttpsrc.c b/tests/check/elements/souphttpsrc.c index ba15745..9fc8f7c 100644 --- a/tests/check/elements/souphttpsrc.c +++ b/tests/check/elements/souphttpsrc.c @@ -23,6 +23,8 @@ # include "config.h" #endif +#include <stdlib.h> + #include <glib.h> #include <glib/gprintf.h> #include <libsoup/soup-address.h> @@ -442,8 +444,11 @@ souphttpsrc_suite (void) TCase *tc_chain, *tc_internet; g_type_init (); + +#if !GLIB_CHECK_VERSION (2, 31, 0) if (!g_thread_supported ()) g_thread_init (NULL); +#endif s = suite_create ("souphttpsrc"); tc_chain = tcase_create ("general"); @@ -451,7 +456,7 @@ souphttpsrc_suite (void) suite_add_tcase (s, tc_chain); run_server (&http_port, &https_port); - g_atexit (stop_server); + atexit (stop_server); tcase_add_test (tc_chain, test_first_buffer_has_offset); tcase_add_test (tc_chain, test_redirect_yes); tcase_add_test (tc_chain, test_redirect_no); |