mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +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
|
# Test for dynamic baudrate configuration interface
|
||||||
compiler = meson.get_compiler('c')
|
compiler = meson.get_compiler('c')
|
||||||
tcgets2 = ''
|
enable_setspeed2 = false
|
||||||
if compiler.check_header('asm/termios.h')
|
if compiler.check_header('asm-generic/ioctls.h')
|
||||||
tcgets2 = compiler.get_define('TCGETS2', prefix: '#include <asm/termios.h>')
|
enable_setspeed2 = compiler.has_header_symbol('asm-generic/ioctls.h', 'TCGETS2')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Test for supported baudrates
|
# Test for supported baudrates
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ tio_sources = [
|
||||||
'print.c'
|
'print.c'
|
||||||
]
|
]
|
||||||
|
|
||||||
if tcgets2 != ''
|
if enable_setspeed2
|
||||||
tio_sources += 'setspeed2.c'
|
tio_sources += 'setspeed2.c'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue