From af791bcb46dd123f336f10c05d8fbb708e2022a2 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@redhat.com>
Date: Tue, 30 Sep 2008 17:56:01 +0200
Subject: [PATCH] fts.m4: correct the test for statfs.f_type

* m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
when checking for statfs.f_type.
---
 ChangeLog | 6 ++++++
 m4/fts.m4 | 6 ++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index df51cfd4d3..8c49189b08 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-09-30  Jim Meyering  <meyering@redhat.com>
+
+	fts.m4: correct the test for statfs.f_type
+	* m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
+	when checking for statfs.f_type.
+
 2008-09-15  Simon Josefsson  <simon@josefsson.org>
 
 	tests: avoid some compiler warnings
diff --git a/m4/fts.m4 b/m4/fts.m4
index 8693db986f..bdba388b8e 100644
--- a/m4/fts.m4
+++ b/m4/fts.m4
@@ -1,4 +1,4 @@
-#serial 14
+#serial 15
 dnl Copyright (C) 2005-2008 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -25,5 +25,7 @@ AC_DEFUN([gl_FUNC_FTS_CORE],
 
   AC_CHECK_FUNCS_ONCE([fstatfs])
   AC_CHECK_HEADERS_ONCE([sys/param.h sys/vfs])dnl
-  AC_CHECK_MEMBERS([struct statfs.f_type])
+  AC_CHECK_MEMBERS([struct statfs.f_type],,,
+    [$ac_includes_default
+     #include <sys/statfs.h>])
 ])
-- 
2.39.5