summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2008-03-12 18:10:49 -0700
committerDan Nicholson <dbn.lists@gmail.com>2008-03-12 18:12:32 -0700
commit11988b44fc68c1020b3cb2eb0f5b349d7eafb8f5 (patch)
tree164c2ff562bb9b22f0a8d7d32f5c2c27c9f04f3c /test
parenta420b06185ddde17c171cc8e5b6fe44bf5edf641 (diff)
Add common macros in config.h through AC_CONFIG_HEADERS
Instead of passing the macros through the compiler, this adds an auto- generated header to include in the sources.
Diffstat (limited to 'test')
-rw-r--r--test/tdep.c3
-rw-r--r--test/tinitd-list.c3
-rw-r--r--test/tinitd.c3
-rw-r--r--test/tparse.c3
-rw-r--r--test/tstr.c3
-rw-r--r--test/tstrarg.c3
6 files changed, 18 insertions, 0 deletions
diff --git a/test/tdep.c b/test/tdep.c
index 3cc0c86..b88919e 100644
--- a/test/tdep.c
+++ b/test/tdep.c
@@ -1,3 +1,6 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <stdio.h>
#include <string.h>
#include "dep.h"
diff --git a/test/tinitd-list.c b/test/tinitd-list.c
index 4609889..3c5ec80 100644
--- a/test/tinitd-list.c
+++ b/test/tinitd-list.c
@@ -1,3 +1,6 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
#include "initd.h"
diff --git a/test/tinitd.c b/test/tinitd.c
index 4a7b088..399c0b3 100644
--- a/test/tinitd.c
+++ b/test/tinitd.c
@@ -1,3 +1,6 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <stdio.h>
#include <string.h>
#include "initd.h"
diff --git a/test/tparse.c b/test/tparse.c
index ecf1d3a..7f8a067 100644
--- a/test/tparse.c
+++ b/test/tparse.c
@@ -1,3 +1,6 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <stdlib.h>
#include <stdio.h>
#include "initd.h"
diff --git a/test/tstr.c b/test/tstr.c
index 0e544db..a200b8c 100644
--- a/test/tstr.c
+++ b/test/tstr.c
@@ -1,3 +1,6 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <stdio.h>
#include <string.h>
#include "str.h"
diff --git a/test/tstrarg.c b/test/tstrarg.c
index 6a99693..2945536 100644
--- a/test/tstrarg.c
+++ b/test/tstrarg.c
@@ -1,3 +1,6 @@
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
#include <stdlib.h>
#include <stdio.h>
#include "str.h"