cryptohome: Fix compilation errors when compiling with glib 2.32.
This CL makes the following changes to make the code compatible with
glib 2.30 and 2.32:
- Add missing gthread-2.0 linkage. gthread-2.0 linkage is required for
g_thread_init when compiling with glib 2.32.
- Include glib.h instead of glib/gthread.h in cryptohomed.cc as the
latter should not be included directly.
BUG=chromium-os:34104
TEST=Build cryptohome with glib 2.30.2 and 2.32.4, and run unit tests.
Change-Id: I8130b03767eed9792ec54d98ad3a3fcba4a52f63
Reviewed-on: https://gerrit.chromium.org/gerrit/32653
Commit-Ready: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
Reviewed-by: Darin Petkov <petkov@chromium.org>
2 files changed