This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]: Fix gdb/787: Compilation on HPUX 11.0 fails if --enable-tui


Hi!

I've committed this patch to add reasonable defaults when the ACS_XXX curses
macros are not defined.  Committed on 5_3-branch and mainline.

	Stephane

2002-10-25  Stephane Carrez  <stcarrez@nerim.fr>

	Fix PR gdb/787
	* tuiWin.c (ACS_LRCORNER, ACS_LLCORNER, ACS_ULCORNER, ACS_URCORNER,
	ACS_HLINE, ACS_VLINE): Define if they don't exist.
Index: tuiWin.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiWin.c,v
retrieving revision 1.24
diff -u -p -r1.24 tuiWin.c
--- tuiWin.c	30 Sep 2002 00:52:27 -0000	1.24
+++ tuiWin.c	25 Oct 2002 19:41:31 -0000
@@ -96,6 +96,25 @@ static void _parseScrollingArgs (char *,
 ** PUBLIC FUNCTIONS
 ***************************************/
 
+#ifndef ACS_LRCORNER
+#  define ACS_LRCORNER '+'
+#endif
+#ifndef ACS_LLCORNER
+#  define ACS_LLCORNER '+'
+#endif
+#ifndef ACS_ULCORNER
+#  define ACS_ULCORNER '+'
+#endif
+#ifndef ACS_URCORNER
+#  define ACS_URCORNER '+'
+#endif
+#ifndef ACS_HLINE
+#  define ACS_HLINE '-'
+#endif
+#ifndef ACS_VLINE
+#  define ACS_VLINE '|'
+#endif
+
 /* Possible values for tui-border-kind variable.  */
 static const char *tui_border_kind_enums[] = {
   "space",

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]