index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/diskspace.h | 20 |
diff --git a/lib/libalpm/diskspace.h b/lib/libalpm/diskspace.h index 69e39d8e..15ff2f67 100644 --- a/lib/libalpm/diskspace.h +++ b/lib/libalpm/diskspace.h @@ -20,8 +20,28 @@ #ifndef _ALPM_DISKSPACE_H #define _ALPM_DISKSPACE_H +#if defined HAVE_GETMNTINFO_STATFS +#include <sys/mount.h> +#else +#include <sys/statvfs.h> +#endif + #include "alpm.h" +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; +} alpm_mountpoint_t; + int _alpm_check_diskspace(pmtrans_t *trans, pmdb_t *db); #endif /* _ALPM_DISKSPACE_H */ |