aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--getloadavg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/getloadavg.c b/getloadavg.c
index 3e4a1d4..b748c3a 100644
--- a/getloadavg.c
+++ b/getloadavg.c
@@ -69,7 +69,10 @@
#ifdef HAVE_CONFIG_H
-#include "config.h"
+/* 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 getloadavg.c was found in $srcdir). */
+#include <config.h>
#endif