summaryrefslogtreecommitdiff
path: root/mail/postfix-current/patches/patch-ag
blob: aa593d661d1beb71ee2844fe10f51d3394b401b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ag,v 1.4 2004/06/06 13:50:41 taca Exp $

--- src/util/sys_defs.h.orig	2004-04-15 04:49:40.000000000 +0900
+++ src/util/sys_defs.h
@@ -50,8 +50,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"