Include "defs.h" before other includes, for vec.c

Daniel Jacobowitz drow@false.org
Fri Sep 29 20:57:00 GMT 2006


On Fri, Sep 29, 2006 at 01:31:42PM -0700, Fred Fish wrote:
> 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.
> 
> 
> 2006-09-29  Fred Fish  <fnf@specifix.com>
> 
> 	* vec.c: Include defs.h first.  This pulls in config.h which can
> 	affect other includes.

Oops.  OK, and thanks.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list