This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Include "defs.h" before other includes, for vec.c
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: fnf at specifix dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 29 Sep 2006 23:30:21 +0200 (CEST)
- Subject: Re: Include "defs.h" before other includes, for vec.c
- References: <200609291331.42865.fnf@specifix.com>
> From: Fred Fish <fnf@specifix.com>
> Date: Fri, 29 Sep 2006 13:31:42 -0700
>
> This fixes a problem on solaris, where vec.h causes types.h to be pulled in,
> but since _SYSCALL32 hasn't been defined yet (by config.h), off32_t doesn't
> get defined. Then later, defs.h pulls in config.h, which defines _SYSCALL32,
> and also causes fcntl.h to be pulled in, which sees _SYSCALL32 and tries
> to use off32_t, which isn't defined.
Heh, I just ran into this today. please commit if you didn't do so
already.
> 2006-09-29 Fred Fish <fnf@specifix.com>
>
> * vec.c: Include defs.h first. This pulls in config.h which can
> affect other includes.