summaryrefslogtreecommitdiff
path: root/mail/postfix/patches/patch-ag
blob: 4042eca9534ddddb5d98ff705ff643cbd6dd87f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$NetBSD: patch-ag,v 1.35 2014/08/25 16:00:54 taca Exp $

* Add support for NetBSD 7.
* Only define HAS_DB if it hasn't been defined.

--- src/util/sys_defs.h.orig	2013-09-29 20:51:55.000000000 +0000
+++ src/util/sys_defs.h
@@ -31,6 +31,7 @@
     || defined(OPENBSD5) \
     || defined(NETBSD1) || defined(NETBSD2) || defined(NETBSD3) \
     || defined(NETBSD4) || defined(NETBSD5) || defined(NETBSD6) \
+    || defined(NETBSD7) \
     || defined(EKKOBSD1) || defined(DRAGONFLY)
 #define SUPPORTED
 #include <sys/types.h>
@@ -44,7 +45,9 @@
 #define DEF_MAILBOX_LOCK "flock, dotlock"
 #define HAS_SUN_LEN
 #define HAS_FSYNC
+#ifndef HAS_DB
 #define HAS_DB
+#endif
 #define HAS_SA_LEN
 #define NATIVE_DB_TYPE	"hash"
 #if (defined(__NetBSD_Version__) && __NetBSD_Version__ >= 104250000)
@@ -1265,6 +1268,8 @@ extern int h_errno;
 #define DEF_SMTP_CACHE_DEMAND	0
 #endif
 
+#define RECEIVED_ENVELOPE_FROM
+
  /*
   * We're not going to try to guess like configure does.
   */