util: Fix the build on MinGW because of missing DT_CHR dirent type

Caused by commit 39480969

Signed-off-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
Erik Skultety 2018-12-04 09:58:10 +01:00
parent f39f881dc1
commit c57adc3300

View File

@ -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;