aboutsummaryrefslogtreecommitdiff
path: root/scsi/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'scsi/meson.build')
-rw-r--r--scsi/meson.build8
1 files changed, 5 insertions, 3 deletions
diff --git a/scsi/meson.build b/scsi/meson.build
index 53f3a1f716..0ff2b3affe 100644
--- a/scsi/meson.build
+++ b/scsi/meson.build
@@ -1,4 +1,6 @@
block_ss.add(files('utils.c'))
-block_ss.add(when: 'CONFIG_LINUX',
- if_true: files('pr-manager.c', 'pr-manager-helper.c'),
- if_false: files('pr-manager-stub.c'))
+if targetos == 'linux'
+ block_ss.add(files('pr-manager.c', 'pr-manager-helper.c'))
+else
+ block_ss.add(files('pr-manager-stub.c'))
+endif