[PATCH] virfiletest: Fix build on non-Linux

Jiri Denemark via Devel posted 1 patch 1 day, 23 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/c9f45792b713167e4587062cedfb3454624c18ed.1765368746.git.jdenemar@redhat.com
tests/virfiletest.c | 2 ++
1 file changed, 2 insertions(+)
[PATCH] virfiletest: Fix build on non-Linux
Posted by Jiri Denemark via Devel 1 day, 23 hours ago
From: Jiri Denemark <jdenemar@redhat.com>

Fixes: 121d179e068b584f62ea2c029d89a44e67c909c0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
---
 tests/virfiletest.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/virfiletest.c b/tests/virfiletest.c
index ccd76a3fac..3f179a3f74 100644
--- a/tests/virfiletest.c
+++ b/tests/virfiletest.c
@@ -329,6 +329,7 @@ testFileIsSharedFSType(const void *opaque G_GNUC_UNUSED)
 }
 
 
+#ifdef __linux__
 static const char *shared_filesystems[] = {
     "/run/user/501/gvfs",
     "/nfs",
@@ -338,6 +339,7 @@ static const char *shared_filesystems[] = {
     "/quobyte",
     NULL,
 };
+#endif
 
 static int
 testFileIsSharedFSOverride(const void *opaque G_GNUC_UNUSED)
-- 
2.52.0