Fix compile warnings on systems without getmntent
Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
00b6694068
commit
5097b162fc
1 changed files with 3 additions and 0 deletions
|
@ -84,6 +84,9 @@ static int mount_point_load_fsinfo(alpm_handle_t *handle, alpm_mountpoint_t *mou
|
||||||
_alpm_log(handle, ALPM_LOG_DEBUG, "loading fsinfo for %s\n", mountpoint->mount_dir);
|
_alpm_log(handle, ALPM_LOG_DEBUG, "loading fsinfo for %s\n", mountpoint->mount_dir);
|
||||||
mountpoint->read_only = mountpoint->fsp.f_flag & ST_RDONLY;
|
mountpoint->read_only = mountpoint->fsp.f_flag & ST_RDONLY;
|
||||||
mountpoint->fsinfo_loaded = MOUNT_FSINFO_LOADED;
|
mountpoint->fsinfo_loaded = MOUNT_FSINFO_LOADED;
|
||||||
|
#else
|
||||||
|
(void)handle;
|
||||||
|
(void)mountpoint;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue