From e599536b2c66d25e522aa1e52dca8842f6530e94 Mon Sep 17 00:00:00 2001 From: Pavel Tsekov Date: Fri, 30 Jun 2006 07:44:18 +0000 Subject: [PATCH] * acinclude.m4 (AC_GET_FS_INFO): Check the return value of getmntinfo() properly. --- ChangeLog | 5 +++++ acinclude.m4 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 492448cfb..ca1557303 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-06-30 Hampa Hug + + * acinclude.m4 (AC_GET_FS_INFO): Check the return value of + getmntinfo() properly. + 2006-06-17 Pavel Tsekov * m4/fstypename.m4: New file. diff --git a/acinclude.m4 b/acinclude.m4 index caa379412..4a54fae9a 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -306,7 +306,7 @@ first argument (NetBSD 3.0)]) main () { struct statvfs *mntbufp; -exit (getmntinfo (&mntbufp, MNT_NOWAIT)); +exit (getmntinfo (&mntbufp, MNT_NOWAIT) == 0); }], mc_cv_sys_mounted_getmntinfo_statvfs=yes, mc_cv_sys_mounted_getmntinfo_statvfs=no,