summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f560c94)
raw | patch | inline | side by side (parent: f560c94)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 9 Dec 2008 09:51:30 +0000 (10:51 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 9 Dec 2008 09:51:30 +0000 (10:51 +0100) |
The file now includes config.h and enables debugging based on COLLECT_DEBUG
instead of some hard-coded value.
instead of some hard-coded value.
src/libcollectdclient/client.c | patch | blob | history |
index 98b737232e7c6ea5004e2089079771b41432d174..f2c0a1e591ee021cd520c2752fdd63f5c7e49954 100644 (file)
# define __attribute__(x) /**/
#endif
+#if HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
(c)->errbuf[sizeof ((c)->errbuf) - 1] = 0; \
} while (0)
-#if 1
+#if COLLECT_DEBUG
# define LCC_DEBUG(...) printf (__VA_ARGS__)
#else
# define LCC_DEBUG(...) /**/