This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] fix for utils.c bool problem
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>,"Martin M. Hunt" <hunt at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 07 Feb 2002 17:01:37 -0500
- Subject: Re: [RFA] fix for utils.c bool problem
- References: <200202072133.NAA28346@cygnus.com> <20020207163944.A30605@nevyn.them.org>
Martin,
@@ -20,18 +20,18 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#include "defs.h"
-#include "gdb_assert.h"
-#include <ctype.h>
-#include "gdb_string.h"
-#include "event-top.h"
-
#ifdef HAVE_CURSES_H
#include <curses.h>
#endif
#ifdef HAVE_TERM_H
#include <term.h>
#endif
+
+#include "defs.h"
+#include "gdb_assert.h"
+#include <ctype.h>
+#include "gdb_string.h"
+#include "event-top.h"
#ifdef __GO32__
#include <pc.h>
It needs to at least include "config.h" first (that is where HAVE_CURSES_H is defined). I think something like:
#include "config.h"
#include "bfd.h"
#include "defs.h"
but the ``I think'' highlights the problem :-( I don't think we should
be working around problems in an un released BFD :-/
Andrew