fts.m4: correct the test for statfs.f_type
authorJim Meyering <meyering@redhat.com>
Tue, 30 Sep 2008 15:56:01 +0000 (17:56 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 30 Sep 2008 15:56:01 +0000 (17:56 +0200)
* m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
when checking for statfs.f_type.

ChangeLog
m4/fts.m4

index df51cfd..8c49189 100644 (file)
--- 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
index 8693db9..bdba388 100644 (file)
--- 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>])
 ])