mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-13 17:18:01 +03:00
util: Change usage of ent->d_type != DT_DIR
Fix a broken non-Linux build to use the !virFileIsDir instead Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
8d5bba08c7
commit
36780a86ae
@ -2693,7 +2693,7 @@ virResctrlMonitorGetStats(virResctrlMonitorPtr monitor,
|
||||
* "mon_L3_01" are two target directories for a two nodes system
|
||||
* with resource utilization data file for each node respectively.
|
||||
*/
|
||||
if (ent->d_type != DT_DIR)
|
||||
if (!virFileIsDir(ent->d_name))
|
||||
continue;
|
||||
|
||||
/* Looking for directory has a prefix 'mon_L' */
|
||||
|
Loading…
Reference in New Issue
Block a user