Skip to content

Instantly share code, notes, and snippets.

@jperras
Created January 3, 2012 19:23
Show Gist options
  • Save jperras/1556459 to your computer and use it in GitHub Desktop.
Save jperras/1556459 to your computer and use it in GitHub Desktop.
Newsbeuter patch #3 (ncurses)
diff --git a/src/controller.cpp b/src/controller.cpp
index 715f59e..c4a4012 100644
--- a/src/controller.cpp
+++ b/src/controller.cpp
@@ -38,7 +38,7 @@
#include <sys/stat.h>
#include <pwd.h>
-#include <ncursesw/ncurses.h>
+#include <ncurses.h>
#include <libxml/xmlversion.h>
#include <libxml/parser.h>
@@ -906,7 +906,6 @@ void controller::version_information(const char * argv0, unsigned int level) {
#if defined(__GNUC__) && defined(__VERSION__)
std::cout << "Compiler: g++ " << __VERSION__ << std::endl;
#endif
- std::cout << "ncurses: " << curses_version() << " (compiled with " << NCURSES_VERSION << ")" << std::endl;
std::cout << "libcurl: " << curl_version() << " (compiled with " << LIBCURL_VERSION << ")" << std::endl;
std::cout << "SQLite: " << sqlite3_libversion() << " (compiled with " << SQLITE_VERSION << ")" << std::endl;
std::cout << "libxml2: compiled with " << LIBXML_DOTTED_VERSION << std::endl << std::endl;
diff --git a/src/view.cpp b/src/view.cpp
index 4a4a647..5a6712c 100644
--- a/src/view.cpp
+++ b/src/view.cpp
@@ -40,7 +40,7 @@
#include <config.h>
#include <sys/param.h>
#include <string.h>
-#include <ncursesw/ncurses.h>
+#include <ncurses.h>
extern "C" {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment