[PATCH/libiberty] Add missing <sys/types.h> in unlink-if-ordinary.c

Ian Lance Taylor ian@airs.com
Mon Mar 28 02:19:00 GMT 2005


DJ Delorie <dj@redhat.com> writes:

> >    You must wrap this in #ifdef HAVE_SYS_TYPES_H
> > 
> > Really?  All the other files in libiberty include this file unconditionally.
> 
> Normally I would say "that means they're all broken" but the ongoing
> ansification means we probably don't need to check for that any more.

<sys/types.h> is not an ISO C header file.  But it is in POSIX.1.  And
it is available on every Unix system.  Because of that, it is
available on every Unix workalike system.

Ian



More information about the Gdb mailing list