Merge pull request #135 from sly74fr/feature/macos_meson_build

Fix TCGETS2 search on Darwin.
This commit is contained in:
Martin Lund 2022-02-14 20:20:40 +01:00 committed by GitHub
commit 2f51e8368f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,10 @@ version_date = '2022-02-13'
# Test for dynamic baudrate configuration interface
compiler = meson.get_compiler('c')
tcgets2 = compiler.get_define('TCGETS2', prefix: '#include <asm/termios.h>')
tcgets2 = ''
if compiler.check_header('<asm/termios.h>')
tcgets2 = compiler.get_define('TCGETS2', prefix: '#include <asm/termios.h>')
endif
# Test for supported baudrates
test_baudrates = [