From d40c44e89e11659439072a4b57d2c0c191d5cae5 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Thu, 6 Aug 2020 10:51:37 +0200 Subject: [PATCH] [lldb] Fix LLDB compilation with ncurses 6.2 due to wattr_set/get being a macro My ncurses 6.2 arch defines those two functions as macros, so the scope operator doesn't work here. --- lldb/source/Core/IOHandlerCursesGUI.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lldb/source/Core/IOHandlerCursesGUI.cpp b/lldb/source/Core/IOHandlerCursesGUI.cpp index 9ae077124ab1..931ddb2ea9e3 100644 --- a/lldb/source/Core/IOHandlerCursesGUI.cpp +++ b/lldb/source/Core/IOHandlerCursesGUI.cpp @@ -486,7 +486,7 @@ public: attr_t saved_attr; short saved_pair; int saved_opts; - ::wattr_get(m_window, &saved_attr, &saved_pair, &saved_opts); + wattr_get(m_window, &saved_attr, &saved_pair, &saved_opts); if (use_blue_background) ::wattron(m_window, COLOR_PAIR(WhiteOnBlue)); while (!string.empty()) { @@ -522,7 +522,7 @@ public: continue; } if (value == 0) { // Reset. - ::wattr_set(m_window, saved_attr, saved_pair, &saved_opts); + wattr_set(m_window, saved_attr, saved_pair, &saved_opts); if (use_blue_background) ::wattron(m_window, COLOR_PAIR(WhiteOnBlue)); } else { @@ -531,7 +531,7 @@ public: COLOR_PAIR(value - 30 + 1 + (use_blue_background ? 8 : 0))); } } - ::wattr_set(m_window, saved_attr, saved_pair, &saved_opts); + wattr_set(m_window, saved_attr, saved_pair, &saved_opts); } void Touch() {