it exists. agedu now builds on OS X.
git-svn-id: svn://svn.tartarus.org/sgt/agedu@8279
cda61777-01e9-0310-a592-
d414129be87e
*/
#define HAVE_LSTAT64
+#define HAVE_FEATURES_H
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h syslog.h termios.h unistd.h])
+AC_CHECK_HEADERS([arpa/inet.h fcntl.h features.h limits.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h syslog.h termios.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
* 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>
#include <sys/stat.h>
#include <unistd.h>
-#include "agedu.h"
#include "du.h"
#include "alloc.h"