This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Patches to build on DJGPP
> Date: Sat, 9 Aug 2008 20:09:20 -0400
> From: Daniel Jacobowitz <drow@false.org>
> Cc: gdb-patches@sourceware.org
>
> On Sat, Aug 09, 2008 at 10:41:46PM +0100, Pedro Alves wrote:
> > - "missing sentinel in function calls" warnings:
> >
> > NULL is not a pointer in djgpp, it's #define NULL 0. Recent gcc's
> > bark on cases like the concat calls I'm fixing, if the last argument
> > is not a pointer.
>
> IIRC OpenBSD detects this error too, so I'm not sure why this didn't
> come up before.
IIRC, this problem is an ancient dispute we had with GCC folks.
> > Include <time.h> in posix-hdep.c, because that's where select is
> > declared. (?)
>
> >From my select man page:
>
> /* According to POSIX.1-2001 */
> #include <sys/select.h>
>
> /* According to earlier standards */
> #include <sys/time.h>
>
> I'm guessing the time.h - sys/time.h difference is irrelevant, one
> probably includes the other.
In DJGPP, sys/time.h includes time.h, and select is declared in
time.h. I'm fine with including sys/time.h.