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

Mark Kettenis mark.kettenis@xs4all.nl
Sun Mar 27 21:38:00 GMT 2005


   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



More information about the Binutils mailing list