diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2015-11-06 00:21:18 +0000 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2015-11-06 00:21:18 +0000 |
commit | 27801f4ff7466eaabe16b7c55689e33980bad8ce (patch) | |
tree | ae69fb25e7cd5e5562794d348443594836a423a6 /lldb/source/Core/IOHandler.cpp | |
parent | 29cd576554dd748c5cec23b3f0297d6767fa704d (diff) | |
download | bcm5719-llvm-27801f4ff7466eaabe16b7c55689e33980bad8ce.tar.gz bcm5719-llvm-27801f4ff7466eaabe16b7c55689e33980bad8ce.zip |
Reuse native curses(8) library on NetBSD
Summary:
The reason for it is limit of detecting ncurses on various systems. For
example, Ubuntu ships with <curses.h> and linkage from <ncurses.h>, <ncurses.h>
isn't detected by CMake. Detecting `<curses.h>` on NetBSD is reusing
conflicting header from the host curses(8) and pkgsrc's ncurses library.
ncurses ships on most (till conflicting) systems with curses.h. On NetBSD it
might be conflicting, so the ncurses headers are installed with pkgsrc to a
subdirectory "ncurses/".
Patch by Kamil Rytarowski. Thanks!
Reviewers: clayborg
Subscribers: youri, akat1, brucem, joerg, lldb-commits
Differential Revision: http://reviews.llvm.org/D14037
llvm-svn: 252250
Diffstat (limited to 'lldb/source/Core/IOHandler.cpp')
-rw-r--r-- | lldb/source/Core/IOHandler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Core/IOHandler.cpp b/lldb/source/Core/IOHandler.cpp index cf290e9bfce..de510c51d34 100644 --- a/lldb/source/Core/IOHandler.cpp +++ b/lldb/source/Core/IOHandler.cpp @@ -9,7 +9,7 @@ // C Includes #ifndef LLDB_DISABLE_CURSES -#include <ncurses.h> +#include <curses.h> #include <panel.h> #endif @@ -4107,7 +4107,9 @@ CursesKeyToCString (int ch) case KEY_UNDO: return "undo key"; case KEY_MOUSE: return "Mouse event has occurred"; case KEY_RESIZE: return "Terminal resize event"; +#ifdef KEY_EVENT case KEY_EVENT: return "We were interrupted by an event"; +#endif case KEY_RETURN: return "return"; case ' ': return "space"; case '\t': return "tab"; |