diff options
Diffstat (limited to 'sysutils/amanda-dev-common/patches/patch-ad')
-rw-r--r-- | sysutils/amanda-dev-common/patches/patch-ad | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sysutils/amanda-dev-common/patches/patch-ad b/sysutils/amanda-dev-common/patches/patch-ad new file mode 100644 index 00000000000..c670d6a4196 --- /dev/null +++ b/sysutils/amanda-dev-common/patches/patch-ad @@ -0,0 +1,22 @@ +$NetBSD: patch-ad,v 1.1.1.1 2002/05/02 13:28:15 bouyer Exp $ + +Use the correct name for the statvfs struct. + +--- common-src/statfs.c.orig Sun May 23 11:11:18 1999 ++++ common-src/statfs.c Thu Jan 11 12:53:12 2001 +@@ -55,7 +55,15 @@ + */ + # include <sys/statvfs.h> + # define STATFS_TYP "SVR4 (Irix-5+, Solaris-2, Linux glibc 2.1)" ++#if defined(__sun__) && defined(__svr4__) ++#if defined(_LARGEFILE64_SOURCE) ++# define STATFS_STRUCT statvfs64_t ++#else ++# define STATFS_STRUCT statvfs_t ++#endif /* largefile source */ ++#else + # define STATFS_STRUCT struct statvfs ++#endif /* !Solaris */ + # define STATFS_TOTAL(buf) (buf).f_blocks + # define STATFS_AVAIL(buf) (buf).f_bavail + # define STATFS_FREE(buf) (buf).f_bfree |