mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fix setspeed2 check
This commit is contained in:
parent
75a7e06d5d
commit
32e853e46e
2 changed files with 4 additions and 4 deletions
|
|
@ -10,9 +10,9 @@ version_date = '2022-02-13'
|
|||
|
||||
# Test for dynamic baudrate configuration interface
|
||||
compiler = meson.get_compiler('c')
|
||||
tcgets2 = ''
|
||||
if compiler.check_header('asm/termios.h')
|
||||
tcgets2 = compiler.get_define('TCGETS2', prefix: '#include <asm/termios.h>')
|
||||
enable_setspeed2 = false
|
||||
if compiler.check_header('asm-generic/ioctls.h')
|
||||
enable_setspeed2 = compiler.has_header_symbol('asm-generic/ioctls.h', 'TCGETS2')
|
||||
endif
|
||||
|
||||
# Test for supported baudrates
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ tio_sources = [
|
|||
'print.c'
|
||||
]
|
||||
|
||||
if tcgets2 != ''
|
||||
if enable_setspeed2
|
||||
tio_sources += 'setspeed2.c'
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue