]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: Fix the build on MinGW because of missing DT_CHR dirent type
authorErik Skultety <eskultet@redhat.com>
Tue, 4 Dec 2018 08:58:10 +0000 (09:58 +0100)
committerErik Skultety <eskultet@redhat.com>
Tue, 4 Dec 2018 08:58:10 +0000 (09:58 +0100)
Caused by commit 39480969

Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/util/virutil.c

index da12a11e04a5d90cdc709194d0862f8818ad2bde..279e6aedc0f5921c850130499fc95c7d4a1e34c9 100644 (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;