Vidar Karlsen says freebsd needs a magic constant.
This commit is contained in:
parent
82720e5954
commit
7d9ee89d3c
@ -65,7 +65,7 @@ struct mtab_list *xgetmountlist(char *path)
|
||||
int i, count;
|
||||
|
||||
if (path) error_exit("xgetmountlist");
|
||||
if ((count = getmntinfo(&entries, 0)) == 0) perror_exit("getmntinfo");
|
||||
if (!(count = getmntinfo(&entries, MNT_WAIT))) perror_exit("getmntinfo");
|
||||
|
||||
// The "test" part of the loop is done before the first time through and
|
||||
// again after each "increment", so putting the actual load there avoids
|
||||
|
Loading…
Reference in New Issue
Block a user