[libvirt] [PATCH] util: Fix the build on MinGW because of missing DT_CHR dirent type

Erik Skultety posted 1 patch 1 week ago
Test syntax-check passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/c57adc330016d5dd326ee2810ca65877be188713.1543914983.git.eskultet@redhat.com
src/util/virutil.c | 3 ---
1 file changed, 3 deletions(-)

[libvirt] [PATCH] util: Fix the build on MinGW because of missing DT_CHR dirent type

Posted by Erik Skultety 1 week ago
Caused by commit 39480969

Signed-off-by: Erik Skultety <eskultet@redhat.com>
---

Pushed under the build breaker rule.

 src/util/virutil.c | 3 ---
 1 file changed, 3 deletions(-)

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

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list