From d62a4f6bf9b65105fe55a686ff9b63278a79db64 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 14 Aug 2008 03:01:23 +0000 Subject: [PATCH] =?utf8?q?Bug=20547637=20=E2=80=93=20unconditional=20#incl?= =?utf8?q?ude=20of=20sys/statfs.h=20in=20configure=20impedes?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2008-08-13 Matthias Clasen 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 | 7 +++++++ configure.in | 2 ++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index d2312f30..0c9f0bc1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-08-13 Matthias Clasen + + 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 * glib/gi18n-lib.h: In the #error about having to define diff --git a/configure.in b/configure.in index eb4bc46c..a2a43e97 100644 --- a/configure.in +++ b/configure.in @@ -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 #include #include +#ifdef HAVE_SYS_STATFS_H #include +#endif #ifdef HAVE_SYS_PARAM_H #include #endif -- 2.34.1