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

Re: Has anyone compiled gdb from CVS on Linux?


> I cannot compile gdb from CVS on Linux since the merge. For one thing,
> include/wait.h doesn't have

I got around this by the enclosed patch (all that HAVE_WAIT_H looks
like pre-POSIX cruft to me).  I haven't tried to turn this into an
official submission (yet, at least).

With this patch, it compiles and runs for me.

Index: lin-thread.c
===================================================================
RCS file: /cvs/src/src/gdb/lin-thread.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 lin-thread.c
--- lin-thread.c	1999/12/22 21:45:07	1.1.1.1
+++ lin-thread.c	2000/02/09 04:45:14
@@ -102,13 +102,7 @@
 #include "inferior.h"
 #include "gdbcmd.h"
 
-#ifdef HAVE_WAIT_H
-#include <wait.h>
-#else
-#ifdef HAVE_SYS_WAIT_H
 #include <sys/wait.h>
-#endif
-#endif
 
 /* "wait.h" fills in the gaps left by <wait.h> */
 #include "wait.h"

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