summaryrefslogtreecommitdiff
path: root/src/sum.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sum.c')
-rw-r--r--src/sum.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/sum.c b/src/sum.c
index c625f7d95..3cf17662c 100644
--- a/src/sum.c
+++ b/src/sum.c
@@ -19,6 +19,17 @@
/* Written by Kayvan Aghaiepour and David MacKenzie. */
+#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 <sys/types.h>
#include <getopt.h>