[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] fts.m4: correct the test for statfs.f_type
From: |
Jim Meyering |
Subject: |
[PATCH] fts.m4: correct the test for statfs.f_type |
Date: |
Tue, 30 Sep 2008 18:16:39 +0200 |
I noticed that the configure-time test for the f_type member
of struct statfs was failing on some systems.
It didn't include <sys/statfs.h>.
I've pushed the obvious fix:
>From af791bcb46dd123f336f10c05d8fbb708e2022a2 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
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 df51cfd..8c49189 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-09-30 Jim Meyering <address@hidden>
+
+ 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 <address@hidden>
tests: avoid some compiler warnings
diff --git a/m4/fts.m4 b/m4/fts.m4
index 8693db9..bdba388 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>])
])
--
1.6.0.2.307.gc427
- [PATCH] fts.m4: correct the test for statfs.f_type,
Jim Meyering <=