summaryrefslogtreecommitdiff
path: root/telepathy-logger
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@freedesktop.org>2013-01-09 13:43:49 +0100
committerDebarshi Ray <debarshir@freedesktop.org>2013-01-09 15:28:21 +0100
commit33531660b4d5c6bb1450ac80686e75012a06a7eb (patch)
tree9daa4d67e9453d118837cb34faaef1bf85b74416 /telepathy-logger
parentfb8c6f057b102b854e608cc48f3a08cf2daa59f8 (diff)
downloadtelepathy-logger-33531660b4d5c6bb1450ac80686e75012a06a7eb.tar.gz
Include config.h as the first thing in every .c file
This is Autoconf best-practice, and ensures that the GLib and Telepathy version-selection macros defined by configure.ac work as intended. Including config.h turns on ENABLE_DEBUG, which in turn leads to the usage of _tpl_debug_set_flags_from_env. In those cases we should include telepathy-logger/debug-internal.h also. Fixes: https://bugs.freedesktop.org/59165
Diffstat (limited to 'telepathy-logger')
-rw-r--r--telepathy-logger/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/telepathy-logger/util.c b/telepathy-logger/util.c
index ba14704..fd871bf 100644
--- a/telepathy-logger/util.c
+++ b/telepathy-logger/util.c
@@ -20,6 +20,8 @@
* Richard Hult <richard@imendio.com>
*/
+#include "config.h"
+
#include "util-internal.h"
#include <errno.h>