Bug 547637 – unconditional #include of sys/statfs.h in configure impedes
authorMatthias Clasen <mclasen@redhat.com>
Thu, 14 Aug 2008 03:01:23 +0000 (03:01 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 14 Aug 2008 03:01:23 +0000 (03:01 +0000)
2008-08-13  Matthias Clasen  <mclasen@redhat.com>

        Bug 547637 – unconditional #include of sys/statfs.h in configure
        impedes detection of statfs things if non-existant

        * configure.in: Protect the statfs.h include by guards.

svn path=/trunk/; revision=7352

ChangeLog
configure.in

index d2312f30a1618a90ca7f104970fd0ddb94530034..0c9f0bc107643912304eb8e0994d3437e88514cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-08-13  Matthias Clasen  <mclasen@redhat.com>
+
+       Bug 547637 – unconditional #include of sys/statfs.h in configure
+       impedes detection of statfs things if non-existant
+
+       * configure.in: Protect the statfs.h include by guards.
+
 2008-08-12  Federico Mena Quintero  <federico@novell.com>
 
        * glib/gi18n-lib.h: In the #error about having to define
index eb4bc46c042fe5be852078a563ca248f82ff5a2f..a2a43e97c979b96d5901b2a45cf58628d0283e1c 100644 (file)
@@ -858,7 +858,9 @@ AC_CHECK_MEMBERS([struct stat.st_mtimensec, struct stat.st_mtim.tv_nsec, struct
 AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_blocks, struct statfs.f_fstypename, struct statfs.f_bavail],,, [#include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
+#ifdef HAVE_SYS_STATFS_H
 #include <sys/statfs.h>
+#endif
 #ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
 #endif