pkgsrc/mail/postfix/patches/patch-ag
minskim 7964bdeff3 statvfs fix for postfix and postfix-current on NetBSD-current>=2.0D.
Patch provided by John R. Shannon in PR pkg/25430.
2004-05-04 19:59:06 +00:00

18 lines
639 B
Text

$NetBSD: patch-ag,v 1.11 2004/05/04 19:59:06 minskim Exp $
--- src/util/sys_defs.h.orig 2003-11-05 14:17:37.000000000 -0600
+++ src/util/sys_defs.h
@@ -48,8 +48,13 @@
#endif
#define GETTIMEOFDAY(t) gettimeofday(t,(struct timezone *) 0)
#define ROOT_PATH "/bin:/usr/bin:/sbin:/usr/sbin"
+#if (defined(__NetBSD__) && __NetBSD_Version__ >= 200040000) /* NetBSD 2.0D */
+#define USE_STATVFS
+#define STATVFS_IN_SYS_STATVFS_H
+#else
#define USE_STATFS
#define STATFS_IN_SYS_MOUNT_H
+#endif
#define HAS_POSIX_REGEXP
#define HAS_ST_GEN /* struct stat contains inode generation number */
#define NATIVE_SENDMAIL_PATH "/usr/sbin/sendmail"