[RFA/tui] (solaris) Fix tui.c build failure

Joel Brobecker brobecker@gnat.com
Thu Feb 26 01:25:00 GMT 2004


Hello,

Peter Schauer (<schauer@pdf.de>) sent me the following patch that
fixes the build failure on x86-solaris 8 and sparc-solaris 7. I tested
it on solaris 8. I simply moves the system header includes past the
local includes, and in particular past the "defs.h" include.

Peter is too busy submitting this patch, so he asked me to do it for
him.

2004-02-25  J. Brobecker  <brobecker@gnat.com>

        From Peter Schauer <schauer@pdf.de>:
        * tui/tui.c: Move system header includes after local includes.
        Fixes a build failure on solaris systems.

OK to apply?

Thanks,
-- 
Joel
-------------- next part --------------
Index: tui.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui.c,v
retrieving revision 1.47
diff -u -r1.47 tui.c
--- tui.c	18 Feb 2004 17:24:36 -0000	1.47
+++ tui.c	26 Feb 2004 01:24:18 -0000
@@ -22,18 +22,6 @@
    Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <ctype.h>
-#ifdef HAVE_TERM_H
-#include <term.h>
-#endif
-#include <signal.h>
-#include <fcntl.h>
-#if 0
-#include <termio.h>
-#endif
-#include <setjmp.h>
 #include "defs.h"
 #include "gdbcmd.h"
 #include "tui/tui.h"
@@ -53,6 +41,19 @@
 #include "inferior.h"
 #include "symtab.h"
 #include "source.h"
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <ctype.h>
+#ifdef HAVE_TERM_H
+#include <term.h>
+#endif
+#include <signal.h>
+#include <fcntl.h>
+#if 0
+#include <termio.h>
+#endif
+#include <setjmp.h>
 
 #include "gdb_curses.h"
 


More information about the Gdb-patches mailing list