]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virfiletest: Fix build on non-Linux master
authorJiri Denemark <jdenemar@redhat.com>
Wed, 10 Dec 2025 12:10:00 +0000 (13:10 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 10 Dec 2025 12:12:07 +0000 (13:12 +0100)
Fixes: 121d179e068b584f62ea2c029d89a44e67c909c0
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
tests/virfiletest.c

index ccd76a3fac03fc1d44ca1709afc5e33c700917d3..3f179a3f74123105f37b164035cb6ffe40628f80 100644 (file)
@@ -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)