From 12706d7e85fc363bcdd376ff5b5866cea861cb2e Mon Sep 17 00:00:00 2001 From: Polonkai Gergely Date: Mon, 12 Mar 2012 12:54:38 +0000 Subject: [PATCH] Added GThread support --- configure.ac | 1 + src/main.c | 1 + 2 files changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 219b4ff..fbd2865 100644 --- a/configure.ac +++ b/configure.ac @@ -22,6 +22,7 @@ fi PKG_CHECK_MODULES([GIO], gio-2.0) PKG_CHECK_MODULES([GLIB], glib-2.0) +PKG_CHECK_MODULES([GTHREAD], gthread-2.0) PKG_CHECK_MODULES([SQLITE3], sqlite3) AC_OUTPUT(Makefile src/Makefile) diff --git a/src/main.c b/src/main.c index 9f09cea..9850d16 100644 --- a/src/main.c +++ b/src/main.c @@ -97,6 +97,7 @@ main(int argc, char **argv) gboolean need_ipv4_socket = TRUE; GSocketListener *game_listener; + g_thread_init(); g_type_init(); g_print("Starting up...\n");