This is the mail archive of the gdb-patches@sourceware.org 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]

Re: Patches to build on DJGPP


On Sun, Aug 10, 2008 at 05:36:39PM +0200, Mark Kettenis wrote:
> > Index: src/gdb/cp-name-parser.y
> > ===================================================================
> > --- src.orig/gdb/cp-name-parser.y	2008-08-09 20:55:32.000000000 +0100
> > +++ src/gdb/cp-name-parser.y	2008-08-09 22:27:04.000000000 +0100
> > @@ -36,6 +36,7 @@ Boston, MA 02110-1301, USA.  */
> >  #include <unistd.h>
> >  #include <string.h>
> >  
> > +#include "config.h"
> >  #include "safe-ctype.h"
> >  #include "libiberty.h"
> >  #include "demangle.h"
> 
> Hmm, is there a reason not to include "defs.h" here?

It's not a great reason, but yes, there is - this file is otherwise
independent of GDB, because you can link it into a stand-alone test
program.  I won't complain if someone adds defs.h, as long as
the test program still links.

-- 
Daniel Jacobowitz
CodeSourcery


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