This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH/libiberty] Add missing <sys/types.h> in unlink-if-ordinary.c
Date: Sat, 26 Mar 2005 14:27:09 +0000
From: Andrew Haley <aph@redhat.com>
Mark Kettenis writes:
> One really shouldn't include <sys/stat.h> without <sys/types.h> on
> BSD-derived systems. On most modern BSD's it is brought in by
> <unistd.h> but vax-dec-ultrix4.0 doesn't have one, so things break.
> The attached patch fixes that.
>
You must wrap this in #ifdef HAVE_SYS_TYPES_H
Really? All the other files in libiberty include this file unconditionally.
Mark