Use a configure check for structfs.f_bavail.
authorMatthias Clasen <matthiasc@src.gnome.org>
Wed, 2 Jul 2008 16:49:04 +0000 (16:49 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 2 Jul 2008 16:49:04 +0000 (16:49 +0000)
        * glocalfile.c: Use a configure check for structfs.f_bavail.

svn path=/trunk/; revision=7144

ChangeLog
configure.in
gio/ChangeLog
gio/glocalfile.c

index a668f2b3f3734e622f2c5dc298270e98fa0c5210..87097e2d27cf86c629f9b0b7b9b08fdd36765a5c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-07-02  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Add a check for structfs.f_bavail
+
 2008-07-02  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/gmain.c (g_get_current_time): Add a g_return_val_if_fail
index d5a7044e8d81d59cfadfbc00305b0b3d8b731864..ac6db4b281b67a172dd92a6bb5f888ee05e8998b 100644 (file)
@@ -831,7 +831,7 @@ AC_CHECK_HEADERS([mntent.h sys/mnttab.h sys/vfstab.h sys/mntctl.h sys/sysctl.h f
 
 # check for structure fields
 AC_CHECK_MEMBERS([struct stat.st_mtimensec, struct stat.st_mtim.tv_nsec, struct stat.st_atimensec, struct stat.st_atim.tv_nsec, struct stat.st_ctimensec, struct stat.st_ctim.tv_nsec])
-AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_blocks, struct statfs.f_fstypename],,, [#include <sys/types.h>
+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_PARAM_H
index 126828d7bcde399dd628157f11ca337a09869279..723a216a9bc2e8b29219bd24fb6d659dc8104d93 100644 (file)
@@ -1,3 +1,9 @@
+2008-07-02  Matthias Clasen  <mclasen@redhat.com>
+
+       536733 – gio build failure on Irix
+
+       * glocalfile.c: Use a configure check for structfs.f_bavail.
+
 2008-07-02  Matthias Clasen  <mclasen@redhat.com>
 
        Bug 534639 – add g_desktop_app_info_new_from_keyfile
index e0bee8d8e748994cf791da067726641f1e3b9054..634a38a2156611943e5182edfc960da4b051fb94 100644 (file)
@@ -53,8 +53,8 @@
 #if defined(HAVE_STATFS) && defined(HAVE_STATVFS)
 /* Some systems have both statfs and statvfs, pick the
    most "native" for these */
-# if defined(sun) && defined(__SVR4)
-   /* on solaris, statfs doesn't even have the
+# if !defined(HAVE_STRUCT_STATFS_F_BAVAIL)
+   /* on solaris and irix, statfs doesn't even have the
       f_bavail field */
 #  define USE_STATVFS
 # else