diff options
Diffstat (limited to 'wsutil/glib-compat.c')
-rw-r--r-- | wsutil/glib-compat.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wsutil/glib-compat.c b/wsutil/glib-compat.c index 7dd67d16a7..8c2092edf2 100644 --- a/wsutil/glib-compat.c +++ b/wsutil/glib-compat.c @@ -129,6 +129,15 @@ g_async_queue_timeout_pop(GAsyncQueue *queue, } #endif /* GLIB_CHECK_VERSION(2,31,18)*/ + + +#if !GLIB_CHECK_VERSION(2,31,0) +GThread *g_thread_new(const gchar *name _U_, GThreadFunc func, gpointer data) +{ + return g_thread_create(func, data, TRUE, NULL); +} +#endif /* GLIB_CHECK_VERSION(2,31,0)*/ + /* * Editor modelines - http://www.wireshark.org/tools/modelines.html * |