This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Has anyone compiled gdb from CVS on Linux?
- To: gdb at sourceware dot cygnus dot com
- Subject: Re: Has anyone compiled gdb from CVS on Linux?
- From: Jim Kingdon <kingdon at redhat dot com>
- Date: 08 Feb 2000 21:01:38 -0800
- Newsgroups: cygnus.gdb
- Organization: Cygnus Solutions
- References: <20000208190825.A17306@lucon.org>
> 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"