From 6a57695ab37a21c78312bab494fb714f96353904 Mon Sep 17 00:00:00 2001 From: Sylvain LAFRASSE Date: Mon, 14 Feb 2022 14:49:42 +0100 Subject: [PATCH] Fix TCGETS2 search on Darwin. --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 50d7809..6b89daf 100644 --- a/meson.build +++ b/meson.build @@ -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 ') +tcgets2 = '' +if compiler.check_header('') + tcgets2 = compiler.get_define('TCGETS2', prefix: '#include ') +endif # Test for supported baudrates test_baudrates = [