summary refs log tree commit diff stats
path: root/backends/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'backends/meson.build')
-rw-r--r--backends/meson.build6
1 files changed, 4 insertions, 2 deletions
diff --git a/backends/meson.build b/backends/meson.build
index 248ce4923c..6dee4e9203 100644
--- a/backends/meson.build
+++ b/backends/meson.build
@@ -10,8 +10,10 @@ system_ss.add([files(
   'confidential-guest-support.c',
 ), numa])
 
-system_ss.add(when: 'CONFIG_POSIX', if_true: files('rng-random.c'))
-system_ss.add(when: 'CONFIG_POSIX', if_true: files('hostmem-file.c'))
+if targetos != 'windows'
+  system_ss.add(files('rng-random.c'))
+  system_ss.add(files('hostmem-file.c'))
+endif
 if targetos == 'linux'
   system_ss.add(files('hostmem-memfd.c'))
 endif