index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2010-11-16 20:12:26 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-12-12 20:31:51 -0600 |
commit | ec136784d4328b4c75f622c08273cf9dc6cac40f (patch) | |
tree | 645ba47c7ce525e5b21c792b19b649668e0dbf9c /lib/libalpm/diskspace.h | |
parent | 24684a616ed46c635a2236873c8168b9153b5bc1 (diff) |
-rw-r--r-- | lib/libalpm/diskspace.h | 11 |
diff --git a/lib/libalpm/diskspace.h b/lib/libalpm/diskspace.h index 15ff2f67..60c00280 100644 --- a/lib/libalpm/diskspace.h +++ b/lib/libalpm/diskspace.h @@ -20,9 +20,10 @@ #ifndef _ALPM_DISKSPACE_H #define _ALPM_DISKSPACE_H -#if defined HAVE_GETMNTINFO_STATFS +#if defined(HAVE_SYS_MOUNT_H) #include <sys/mount.h> -#else +#endif +#if defined(HAVE_SYS_STATVFS_H) #include <sys/statvfs.h> #endif @@ -31,15 +32,11 @@ typedef struct __alpm_mountpoint_t { /* mount point information */ char *mount_dir; -#if defined HAVE_GETMNTINFO_STATFS - struct statfs *fsp; -#else - struct statvfs *fsp; -#endif /* storage for additional disk usage calculations */ long blocks_needed; long max_blocks_needed; int used; + FSSTATSTYPE *fsp; } alpm_mountpoint_t; int _alpm_check_diskspace(pmtrans_t *trans, pmdb_t *db); |