From 2d4510e41fe06d3b09f19f6ac7ef5d3be64fef2b Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Tue, 9 Dec 2008 10:51:30 +0100 Subject: [PATCH] libcollectdclient/client.c: Let COLLECT_DEBUG decide about debugging. The file now includes config.h and enables debugging based on COLLECT_DEBUG instead of some hard-coded value. --- src/libcollectdclient/client.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libcollectdclient/client.c b/src/libcollectdclient/client.c index 98b73723..f2c0a1e5 100644 --- a/src/libcollectdclient/client.c +++ b/src/libcollectdclient/client.c @@ -48,6 +48,10 @@ # define __attribute__(x) /**/ #endif +#if HAVE_CONFIG_H +# include "config.h" +#endif + #include #include #include @@ -94,7 +98,7 @@ (c)->errbuf[sizeof ((c)->errbuf) - 1] = 0; \ } while (0) -#if 1 +#if COLLECT_DEBUG # define LCC_DEBUG(...) printf (__VA_ARGS__) #else # define LCC_DEBUG(...) /**/ -- 2.30.2