diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-12-19 10:17:09 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-01-11 10:44:33 +0100 |
commit | 1baf34a1369ed323717c215d69bb6261b89cb5d7 (patch) | |
tree | 3c2805f0aa33568c951eec8f22261a186200e9cb /chardev/meson.build | |
parent | c0a6665c3c4d63b113ab31c624c53d4a32de2926 (diff) |
chardev: clean up chardev-parallel.c
Replace HAVE_CHARDEV_PARPORT with a Meson conditional, remove unnecessary
defines, and close the file descriptor on FreeBSD/DragonFly.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'chardev/meson.build')
-rw-r--r-- | chardev/meson.build | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chardev/meson.build b/chardev/meson.build index 664f77b887..789b50056a 100644 --- a/chardev/meson.build +++ b/chardev/meson.build @@ -14,9 +14,12 @@ chardev_ss.add(files( )) chardev_ss.add(when: 'CONFIG_POSIX', if_true: [files( 'char-fd.c', - 'char-parallel.c', 'char-pty.c', ), util]) +if targetos in ['linux', 'gnu/kfreebsd', 'freebsd', 'dragonfly'] + chardev_ss.add(files('char-parallel.c')) +endif + chardev_ss.add(when: 'CONFIG_WIN32', if_true: files( 'char-console.c', 'char-win-stdio.c', |