summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--getloadavg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/getloadavg.c b/getloadavg.c
index b748c3a..ad79231 100644
--- a/getloadavg.c
+++ b/getloadavg.c
@@ -69,10 +69,14 @@
#ifdef HAVE_CONFIG_H
+#if defined (emacs) || 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 getloadavg.c was found in $srcdir). */
+ (which it would do because it found this file in $srcdir). */
#include <config.h>
+#else
+#include "config.h"
+#endif
#endif