This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
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