summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917>2012-01-25 16:41:55 +0000
committerfergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917>2012-01-25 16:41:55 +0000
commit263c8912a68ec3b5dc2741089d2237b5aded3d7c (patch)
treeefe457f9c28d4ffed000caf8ba140b9158e153f0
parentbc9ccf8459d2f162385fb15481119bf5e6857a8b (diff)
downloaddistcc-263c8912a68ec3b5dc2741089d2237b5aded3d7c.tar.gz
Add #include "config.h" in a couple of places,
to ensure that macros tested with #if/#ifdef are defined properly before they are tested. This is a partial application of a patch from pkts.ca for issue 80; the other parts of that patch conflict with a patch from Akim Demaille <demaille@gostai.com> which was committed in revision 715 <http://code.google.com/p/distcc/source/detail?r=715>. git-svn-id: http://distcc.googlecode.com/svn/trunk@751 01de4be4-8c4a-0410-9132-4925637da917
-rw-r--r--src/hosts.c1
-rw-r--r--src/snprintf.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/hosts.c b/src/hosts.c
index aaf4fd9..a237bd8 100644
--- a/src/hosts.c
+++ b/src/hosts.c
@@ -105,6 +105,7 @@
#include "hosts.h"
#include "exitcode.h"
#include "snprintf.h"
+#include "config.h"
#ifdef HAVE_AVAHI
#include "zeroconf.h"
#define ZEROCONF_MAGIC "+zeroconf"
diff --git a/src/snprintf.h b/src/snprintf.h
index db2a19f..99c3e39 100644
--- a/src/snprintf.h
+++ b/src/snprintf.h
@@ -7,6 +7,7 @@
*/
#include <stdarg.h>
+#include "config.h"
#ifdef __GNUC__
/** Use gcc attribute to check printf fns. a1 is the 1-based index of