diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/history.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index c90eb31..acbed8f 100644 --- a/configure.ac +++ b/configure.ac @@ -188,7 +188,7 @@ AS_IF([test "$with_electric_fence" = yes], dnl Checks for header files. AC_HEADER_STDC -AC_CHECK_HEADERS([pwd.h sys/ioctl.h]) +AC_CHECK_HEADERS([pwd.h sys/ioctl.h sys/stat.h]) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_TYPEOF diff --git a/src/history.c b/src/history.c index 421973e..d1e9938 100644 --- a/src/history.c +++ b/src/history.c @@ -25,6 +25,10 @@ #include "ratpoison.h" +#ifdef HAVE_SYS_STAT_H +#include <sys/stat.h> +#endif + #ifdef HAVE_HISTORY #include "readline/history.h" #endif |