Skip to content

Commit

Permalink
Fix issue with g_thread_init so it builds for glib > and < 2.31.0
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe De Swert <philippedeswert@gmail.com>
  • Loading branch information
philippedeswert committed Aug 15, 2012
1 parent ff2899d commit 1a83bf3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/usb_moded.c
Expand Up @@ -535,7 +535,9 @@ int main(int argc, char* argv[])
freopen("/dev/null", "a", stderr);
}
g_type_init();
#if !GLIB_CHECK_VERSION(2, 31, 0)
g_thread_init(NULL);
#endif
mainloop = g_main_loop_new(NULL, FALSE);
log_debug("usb_moded starting\n");

Expand Down

0 comments on commit 1a83bf3

Please sign in to comment.