Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/postfix/util determine path to /etc(/mail)?/aliases...
details: https://anonhg.NetBSD.org/src/rev/89e22f97a51f
branches: trunk
changeset: 485824:89e22f97a51f
user: itojun <itojun%NetBSD.org@localhost>
date: Sat May 06 16:59:38 2000 +0000
description:
determine path to /etc(/mail)?/aliases by using __NetBSD_Version__.
the patch will be sent back to wietse.
From: matthew
diffstat:
gnu/dist/postfix/util/sys_defs.h | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r c2fdf0571425 -r 89e22f97a51f gnu/dist/postfix/util/sys_defs.h
--- a/gnu/dist/postfix/util/sys_defs.h Sat May 06 16:35:14 2000 +0000
+++ b/gnu/dist/postfix/util/sys_defs.h Sat May 06 16:59:38 2000 +0000
@@ -24,6 +24,7 @@
|| defined(OPENBSD2) || defined(NETBSD1) || defined(RHAPSODY5)
#define SUPPORTED
#include <sys/types.h>
+#include <sys/param.h>
#define USE_PATHS_H
#define USE_FLOCK_LOCK
#define HAS_SUN_LEN
@@ -31,10 +32,15 @@
#define HAS_DB
#define HAS_SA_LEN
#define DEF_DB_TYPE "hash"
-#if 0 /*before sendmail 8.10*/
+#ifdef __NetBSD__
+#if (defined(__NetBSD_Version__) && __NetBSD_Version__ >= 104250000)
+/* sendmail 8.10 */
+#define ALIAS_DB_MAP "hash:/etc/mail/aliases"
+#else
#define ALIAS_DB_MAP "hash:/etc/aliases"
-#else /*sendmail 8.10*/
-#define ALIAS_DB_MAP "hash:/etc/mail/aliases"
+#endif
+#else
+#define ALIAS_DB_MAP "hash:/etc/aliases"
#endif
#define GETTIMEOFDAY(t) gettimeofday(t,(struct timezone *) 0)
#define ROOT_PATH "/bin:/usr/bin:/sbin:/usr/sbin"
Home |
Main Index |
Thread Index |
Old Index