diff options
author | Max Kellermann <max@duempel.org> | 2013-12-15 12:32:15 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-12-15 18:43:12 +0100 |
commit | d5dfe7d457b559bd9c53d65d0315c55611cc6a79 (patch) | |
tree | 42825c13cc44e4fe1272d14f9dc26f03ce0ef596 /src/LogInit.cxx | |
parent | 0db0b4e302f82165b763da7717059911a85c370f (diff) | |
download | mpd-d5dfe7d457b559bd9c53d65d0315c55611cc6a79.tar.gz mpd-d5dfe7d457b559bd9c53d65d0315c55611cc6a79.tar.xz mpd-d5dfe7d457b559bd9c53d65d0315c55611cc6a79.zip |
configure.ac: add option "--disable-glib"
Allows building without GLib. This fails to compile currently,
because GLib is still used in the MPD core.
Diffstat (limited to 'src/LogInit.cxx')
-rw-r--r-- | src/LogInit.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/LogInit.cxx b/src/LogInit.cxx index 42d86951f..bd858a32c 100644 --- a/src/LogInit.cxx +++ b/src/LogInit.cxx @@ -31,13 +31,16 @@ #include "util/Domain.hxx" #include "system/FatalError.hxx" +#ifdef HAVE_GLIB +#include <glib.h> +#endif + #include <assert.h> #include <string.h> #include <fcntl.h> #include <stdio.h> #include <time.h> #include <unistd.h> -#include <glib.h> #define LOG_LEVEL_SECURE LogLevel::INFO @@ -110,9 +113,11 @@ log_init(bool verbose, bool use_stdout, Error &error) { const struct config_param *param; +#ifdef HAVE_GLIB const char *charset; g_get_charset(&charset); SetLogCharset(charset); +#endif if (verbose) SetLogThreshold(LogLevel::DEBUG); |