1
0
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:
John Ferlan 2018-11-14 13:55:13 -05:00
parent 8d5bba08c7
commit 36780a86ae

View File

@ -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' */