From: John Ferlan Date: Wed, 14 Nov 2018 18:55:13 +0000 (-0500) Subject: util: Change usage of ent->d_type != DT_DIR X-Git-Tag: v4.10.0-rc1~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36780a86ae7d150a7cc49e2643f12343804bae07;p=thirdparty%2Flibvirt.git 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 --- 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' */