Fix setspeed2 check

This commit is contained in:
Martin Lund 2022-02-14 20:46:34 +01:00
parent 75a7e06d5d
commit 32e853e46e
2 changed files with 4 additions and 4 deletions

View file

@ -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