Make #inclusion of <features.h> conditional on autoconf telling us
[sgt/agedu] / du.c
diff --git a/du.c b/du.c
index 9a8a4a3..1a375bf 100644 (file)
--- a/du.c
+++ b/du.c
@@ -2,8 +2,12 @@
  * du.c: implementation of du.h.
  */
 
+#include "agedu.h" /* for config.h */
+
+#ifdef HAVE_FEATURES_H
 #define _GNU_SOURCE
 #include <features.h>
+#endif
 
 #include <stdio.h>
 #include <string.h>
@@ -14,7 +18,6 @@
 #include <sys/stat.h>
 #include <unistd.h>
 
-#include "agedu.h"
 #include "du.h"
 #include "alloc.h"