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();


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to