From: Erik Skultety Date: Tue, 4 Dec 2018 08:58:10 +0000 (+0100) Subject: util: Fix the build on MinGW because of missing DT_CHR dirent type X-Git-Tag: v5.0.0-rc1~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c57adc330016d5dd326ee2810ca65877be188713;p=thirdparty%2Flibvirt.git util: Fix the build on MinGW because of missing DT_CHR dirent type Caused by commit 39480969 Signed-off-by: Erik Skultety --- diff --git a/src/util/virutil.c b/src/util/virutil.c index da12a11e04..279e6aedc0 100644 --- a/src/util/virutil.c +++ b/src/util/virutil.c @@ -2172,9 +2172,6 @@ virHostGetDRMRenderNode(void) return NULL; while ((dirErr = virDirRead(driDir, &ent, driPath)) > 0) { - if (ent->d_type != DT_CHR) - continue; - if (STRPREFIX(ent->d_name, "renderD")) { have_rendernode = true; break;