[Lldb-commits] [lldb] cbe7898 - [lldb] [Host/Terminal] Add missing #ifdef for baudRateToConst()
Michał Górny via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 21 02:02:47 PDT 2021
Author: Michał Górny
Date: 2021-10-21T11:00:17+02:00
New Revision: cbe789844703fe72d45b15614fa3b350e76f8570
URL: https://github.com/llvm/llvm-project/commit/cbe789844703fe72d45b15614fa3b350e76f8570
DIFF: https://github.com/llvm/llvm-project/commit/cbe789844703fe72d45b15614fa3b350e76f8570.diff
LOG: [lldb] [Host/Terminal] Add missing #ifdef for baudRateToConst()
Added:
Modified:
lldb/source/Host/common/Terminal.cpp
Removed:
################################################################################
diff --git a/lldb/source/Host/common/Terminal.cpp b/lldb/source/Host/common/Terminal.cpp
index 6b7c2821d378..23cd1dea114b 100644
--- a/lldb/source/Host/common/Terminal.cpp
+++ b/lldb/source/Host/common/Terminal.cpp
@@ -112,6 +112,7 @@ llvm::Error Terminal::SetRaw() {
#endif // #if LLDB_ENABLE_TERMIOS
}
+#if LLDB_ENABLE_TERMIOS
static llvm::Optional<speed_t> baudRateToConst(unsigned int baud_rate) {
switch (baud_rate) {
#if defined(B50)
@@ -254,6 +255,7 @@ static llvm::Optional<speed_t> baudRateToConst(unsigned int baud_rate) {
return llvm::None;
}
}
+#endif
llvm::Error Terminal::SetBaudRate(unsigned int baud_rate) {
llvm::Expected<Data> data = GetData();
More information about the lldb-commits
mailing list