Commit 563eb127 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Use a configure check for structfs.f_bavail.

        * glocalfile.c: Use a configure check for structfs.f_bavail.


svn path=/trunk/; revision=7144
parent 9d822240
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> 2008-07-02 Matthias Clasen <mclasen@redhat.com>
* glib/gmain.c (g_get_current_time): Add a g_return_val_if_fail * glib/gmain.c (g_get_current_time): Add a g_return_val_if_fail
......
...@@ -831,7 +831,7 @@ AC_CHECK_HEADERS([mntent.h sys/mnttab.h sys/vfstab.h sys/mntctl.h sys/sysctl.h f ...@@ -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 # 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_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 <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#ifdef HAVE_SYS_PARAM_H #ifdef HAVE_SYS_PARAM_H
......
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> 2008-07-02 Matthias Clasen <mclasen@redhat.com>
Bug 534639 – add g_desktop_app_info_new_from_keyfile Bug 534639 – add g_desktop_app_info_new_from_keyfile
......
...@@ -53,8 +53,8 @@ ...@@ -53,8 +53,8 @@
#if defined(HAVE_STATFS) && defined(HAVE_STATVFS) #if defined(HAVE_STATFS) && defined(HAVE_STATVFS)
/* Some systems have both statfs and statvfs, pick the /* Some systems have both statfs and statvfs, pick the
most "native" for these */ most "native" for these */
# if defined(sun) && defined(__SVR4) # if !defined(HAVE_STRUCT_STATFS_F_BAVAIL)
/* on solaris, statfs doesn't even have the /* on solaris and irix, statfs doesn't even have the
f_bavail field */ f_bavail field */
# define USE_STATVFS # define USE_STATVFS
# else # else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment