]> git.proxmox.com Git - mirror_qemu.git/blobdiff - net/can/meson.build
meson: remove OS definitions from config_targetos
[mirror_qemu.git] / net / can / meson.build
index 45693c82c9d2e1d251d24a788e6fa37b154e8820..bdf6f8eee16213f599d77d38c836f5d32aee7e61 100644 (file)
@@ -1,5 +1,7 @@
 can_ss = ss.source_set()
 can_ss.add(files('can_core.c', 'can_host.c'))
-can_ss.add(when: 'CONFIG_LINUX', if_true: files('can_socketcan.c'))
+if targetos == 'linux'
+  can_ss.add(files('can_socketcan.c'))
+endif
 
 system_ss.add_all(when: 'CONFIG_CAN_BUS', if_true: can_ss)