aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-11-28 23:00:51 +0100
committerJelmer Vernooij <jelmer@samba.org>2005-11-28 23:00:51 +0100
commitf712188c6240cb6f77791b4f05e55b1a001d4037 (patch)
tree172d6267972676e507507c3dec899bc55adc8dd7
parentdfde8e08f71cfd24c9c247962bb4ddbed0b089fa (diff)
Add HAVE_CONFIG_H define so other platforms can build without config.h
-rw-r--r--bitlbee.h2
-rwxr-xr-xconfigure2
2 files changed, 4 insertions, 0 deletions
diff --git a/bitlbee.h b/bitlbee.h
index 17083ff2..e4cc2868 100644
--- a/bitlbee.h
+++ b/bitlbee.h
@@ -34,7 +34,9 @@
#define MAX_STRING 128
+#if HAVE_CONFIG_H
#include "config.h"
+#endif
#include <fcntl.h>
#include <time.h>
diff --git a/configure b/configure
index 985e8209..3c15e646 100755
--- a/configure
+++ b/configure
@@ -118,6 +118,8 @@ fi
echo CFLAGS+=-I`pwd` -I`pwd`/protocols -I. >> Makefile.settings
+echo CFLAGS+=-DHAVE_CONFIG_H >> Makefile.settings
+
if [ -n "$CC" ]; then
echo "CC=$CC" >> Makefile.settings;
elif type gcc > /dev/null 2> /dev/null; then