diff --git a/src/getloadavg.c b/src/getloadavg.c index b748c3a5ace..ad79231f671 100644 --- a/src/getloadavg.c +++ b/src/getloadavg.c @@ -69,10 +69,14 @@ #ifdef HAVE_CONFIG_H +#if defined (emacs) || defined (CONFIG_BROKETS) /* We use 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 +#else +#include "config.h" +#endif #endif