This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]