From 36780a86ae7d150a7cc49e2643f12343804bae07 Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Wed, 14 Nov 2018 13:55:13 -0500 Subject: [PATCH] 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 --- src/util/virresctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virresctrl.c b/src/util/virresctrl.c index f7481a1036..ef5c668921 100644 --- a/src/util/virresctrl.c +++ b/src/util/virresctrl.c @@ -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' */ -- GitLab