This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Patches to build on DJGPP
On Sunday 10 August 2008 18:40:25, Pedro Alves wrote:
> I just checked that this in gdb_select.h, and dropping the include <time.h>
> in posix-hdep.c buils fine in DJGPP.
>
> --- src.orig/gdb/gdb_select.h
> +++ src/gdb/gdb_select.h
> @@ -22,10 +22,8 @@
>
> #ifdef HAVE_SYS_SELECT_H
> #include <sys/select.h>
> -#endif
> -
> -#ifdef HAVE_SYS_TYPES_H
> -#include <sys/types.h>
> +#else
> +#include <sys/time.h>
> #endif
>
> We already include sys/time.h in common code without a HAVE_SYS...
> wrapper (event-loop.c), so I guess this is the best to do here?
Sorry, that diff was confusing -- is was a diff against the previous
diff.
What I meant was simply:
--- src.orig/gdb/gdb_select.h 2008-08-10 18:47:57.000000000 +0100
+++ src/gdb/gdb_select.h 2008-08-10 18:48:08.000000000 +0100
@@ -22,6 +22,8 @@
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
+#else
+#include <sys/time.h>
#endif
--
Pedro Alves