From bcf38d6889c540be700ca57b5dd36dae9d24276d Mon Sep 17 00:00:00 2001 From: itojun Date: Sat, 6 May 2000 16:59:38 +0000 Subject: [PATCH] determine path to /etc(/mail)?/aliases by using __NetBSD_Version__. the patch will be sent back to wietse. From: matthew --- gnu/dist/postfix/util/sys_defs.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/gnu/dist/postfix/util/sys_defs.h b/gnu/dist/postfix/util/sys_defs.h index f749e94b59fd..a7db1314bb2c 100644 --- a/gnu/dist/postfix/util/sys_defs.h +++ b/gnu/dist/postfix/util/sys_defs.h @@ -24,6 +24,7 @@ || defined(OPENBSD2) || defined(NETBSD1) || defined(RHAPSODY5) #define SUPPORTED #include +#include #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*/ -#define ALIAS_DB_MAP "hash:/etc/aliases" -#else /*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" +#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"