mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Merge branch 'osx-baudrate' of https://github.com/robey/tio into robey-osx-baudrate
This commit is contained in:
commit
7ffeeccdf5
4 changed files with 70 additions and 6 deletions
11
meson.build
11
meson.build
|
|
@ -11,8 +11,15 @@ version_date = '2022-02-15'
|
|||
# Test for dynamic baudrate configuration interface
|
||||
compiler = meson.get_compiler('c')
|
||||
enable_setspeed2 = false
|
||||
if compiler.check_header('asm-generic/ioctls.h')
|
||||
enable_setspeed2 = compiler.has_header_symbol('asm-generic/ioctls.h', 'TCGETS2')
|
||||
enable_iossiospeed = false
|
||||
if host_machine.system() != 'darwin'
|
||||
if compiler.check_header('asm-generic/ioctls.h')
|
||||
enable_setspeed2 = compiler.has_header_symbol('asm-generic/ioctls.h', 'TCGETS2')
|
||||
endif
|
||||
else
|
||||
if compiler.check_header('IOKit/serial/ioss.h')
|
||||
enable_iossiospeed = compiler.has_header_symbol('IOKit/serial/ioss.h', 'IOSSIOSPEED')
|
||||
endif
|
||||
endif
|
||||
|
||||
# Test for supported baudrates
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue