summaryrefslogtreecommitdiff
path: root/src/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/env.c')
-rw-r--r--src/env.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/env.c b/src/env.c
index b08d48311..0871ba0c4 100644
--- a/src/env.c
+++ b/src/env.c
@@ -77,6 +77,17 @@
{ LOGNAME=foo PATH=/energy }
*/
+#ifdef HAVE_CONFIG_H
+#if defined (CONFIG_BROKETS)
+/* We use <config.h> instead of "config.h" so that a compilation
+ using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h
+ (which it would do because it found this file in $srcdir). */
+#include <config.h>
+#else
+#include "config.h"
+#endif
+#endif
+
#include <stdio.h>
#include <getopt.h>
#include <sys/types.h>