From: Jim Meyering Date: Tue, 17 Jun 2003 17:40:45 +0000 (+0000) Subject: Fix for build failure on Ultrix 4.3. X-Git-Tag: v5.0.1~256 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=588e9f6a69b2bf90bf824a5a5a7adaf0a77af72a;p=thirdparty%2Fcoreutils.git Fix for build failure on Ultrix 4.3. Include sys/statvfs.h in preference to sys/vfs.h. Include sys/param.h and sys/mount.h on ultrix. --- diff --git a/src/stat.c b/src/stat.c index af19a17bea..020e73fdf1 100644 --- a/src/stat.c +++ b/src/stat.c @@ -25,10 +25,10 @@ #include #include #include -#if HAVE_SYS_VFS_H -# include -#elif HAVE_SYS_STATVFS_H && HAVE_STRUCT_STATVFS_F_BASETYPE +#if HAVE_SYS_STATVFS_H && HAVE_STRUCT_STATVFS_F_BASETYPE # include +#elif HAVE_SYS_VFS_H +# include #elif HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H /* NOTE: freebsd5.0 needs sys/param.h and sys/mount.h for statfs. It does have statvfs.h, but shouldn't use it, since it doesn't @@ -36,11 +36,12 @@ /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */ # include # include -#elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H +# if HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H /* Ultrix 4.4 needs these for the declaration of struct statfs. */ -# include -# include -# include +# include +# include +# include +# endif #endif #include "system.h"