Created
March 23, 2012 09:15
-
-
Save waltarix/2168809 to your computer and use it in GitHub Desktop.
htop: Fix "curses.h" location.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CPUMeter.c b/CPUMeter.c | |
index 90555ff..b6afea6 100644 | |
--- a/CPUMeter.c | |
+++ b/CPUMeter.c | |
@@ -12,7 +12,7 @@ in the source distribution for its full text. | |
#include <assert.h> | |
#include <stdlib.h> | |
-#include <curses.h> | |
+#include <ncursesw/curses.h> | |
#include <string.h> | |
#include <math.h> | |
diff --git a/CRT.c b/CRT.c | |
index 621adfc..6933f25 100644 | |
--- a/CRT.c | |
+++ b/CRT.c | |
@@ -10,7 +10,7 @@ in the source distribution for its full text. | |
#include "config.h" | |
#include "String.h" | |
-#include <curses.h> | |
+#include <ncursesw/curses.h> | |
#include <signal.h> | |
#include <stdlib.h> | |
#ifdef HAVE_EXECINFO_H | |
diff --git a/FunctionBar.c b/FunctionBar.c | |
index dc4368e..c40cf41 100644 | |
--- a/FunctionBar.c | |
+++ b/FunctionBar.c | |
@@ -13,7 +13,7 @@ in the source distribution for its full text. | |
#include <string.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
-#include <curses.h> | |
+#include <ncursesw/curses.h> | |
/*{ | |
#include "Object.h" | |
diff --git a/LoadAverageMeter.c b/LoadAverageMeter.c | |
index 9d5071b..0b4c0ad 100644 | |
--- a/LoadAverageMeter.c | |
+++ b/LoadAverageMeter.c | |
@@ -9,7 +9,7 @@ in the source distribution for its full text. | |
#include "CRT.h" | |
-#include <curses.h> | |
+#include <ncursesw/curses.h> | |
#include <assert.h> | |
/*{ | |
diff --git a/MemoryMeter.c b/MemoryMeter.c | |
index fa897d7..208840a 100644 | |
--- a/MemoryMeter.c | |
+++ b/MemoryMeter.c | |
@@ -11,7 +11,7 @@ in the source distribution for its full text. | |
#include "ProcessList.h" | |
#include <stdlib.h> | |
-#include <curses.h> | |
+#include <ncursesw/curses.h> | |
#include <string.h> | |
#include <math.h> | |
#include <sys/param.h> | |
diff --git a/Panel.c b/Panel.c | |
index b090c52..b266195 100644 | |
--- a/Panel.c | |
+++ b/Panel.c | |
@@ -18,7 +18,7 @@ in the source distribution for its full text. | |
#include <ctype.h> | |
#include <string.h> | |
#include <assert.h> | |
-#include <curses.h> | |
+#include <ncursesw/curses.h> | |
//#link curses | |
diff --git a/RichString.c b/RichString.c | |
index eca2293..2fe1ec6 100644 | |
--- a/RichString.c | |
+++ b/RichString.c | |
@@ -24,7 +24,7 @@ in the source distribution for its full text. | |
#elif HAVE_NCURSES_H | |
#include <ncurses.h> | |
#elif HAVE_CURSES_H | |
-#include <curses.h> | |
+#include <ncursesw/curses.h> | |
#endif | |
#define RichString_size(this) ((this)->chlen) | |
diff --git a/RichString.h b/RichString.h | |
index 1b4d244..1658663 100644 | |
--- a/RichString.h | |
+++ b/RichString.h | |
@@ -22,7 +22,7 @@ in the source distribution for its full text. | |
#elif HAVE_NCURSES_H | |
#include <ncurses.h> | |
#elif HAVE_CURSES_H | |
-#include <curses.h> | |
+#include <ncursesw/curses.h> | |
#endif | |
#define RichString_size(this) ((this)->chlen) | |
diff --git a/SwapMeter.c b/SwapMeter.c | |
index 48a7dae..9547bb6 100644 | |
--- a/SwapMeter.c | |
+++ b/SwapMeter.c | |
@@ -11,7 +11,7 @@ in the source distribution for its full text. | |
#include "ProcessList.h" | |
#include <stdlib.h> | |
-#include <curses.h> | |
+#include <ncursesw/curses.h> | |
#include <string.h> | |
#include <math.h> | |
#include <sys/param.h> | |
diff --git a/configure b/configure | |
index 18aa703..aca1997 100755 | |
--- a/configure | |
+++ b/configure | |
@@ -11708,7 +11708,7 @@ $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
fi | |
-for ac_header in stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h curses.h | |
+for ac_header in stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h | |
do : | |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment