$NetBSD: patch-ac,v 1.5 2005/12/19 15:10:18 joerg Exp $

--- config.h.orig	2004-08-22 20:19:09.000000000 +0000
+++ config.h
@@ -108,7 +108,7 @@
 /***** rfc2ftn configuration ************************************************/
 
 /** Passthru operation for NetMail: FIDO->Internet->FIDO **/
-/* #define PASSTHRU_NETMAIL */
+#define PASSTHRU_NETMAIL
 /** Passthru operation for EchoMail: FIDO->Internet->FIDO **/
 /*
  * Implemented, but requires ftntoss run after rfc2ftn to sort SEEN-BY
@@ -283,23 +283,42 @@
 # define HAS_POSIX_REGEX
 #endif
 
-#ifdef __FreeBSD__		/* FreeBSD 2.1.6., GNU gcc */
+#if defined(__FreeBSD__) || defined(__DragonFly__)		/* FreeBSD 2.1.6., GNU gcc */
 # define HAS_FCNTL_LOCK
 # define HAS_GETTIMEOFDAY
 # define HAS_TM_GMTOFF
 # define HAS_SYSEXITS_H
 # define HAS_TM_ZONE
 # define HAS_STRFTIME
-# undef  HAS_TZNAME
+# define HAS_TZNAME
 # define HAS_STRCASECMP
 # undef  HAS_STRICMP
-# undef  HAS_STRERROR		/* ? */
+# define HAS_STRERROR		/* ? */
 # undef  DO_BINARY
 # undef  DO_DOSIFY
 # define HAS_SYSLOG
 # define HAS_SNPRINTF		/* ? */
 # define HAS_HARDLINKS
-# undef  HAS_POSIX_REGEX	/* ? */
+# define HAS_POSIX_REGEX	/* ? */
+#endif
+
+#ifdef __NetBSD__
+# define HAS_FCNTL_LOCK
+# define HAS_GETTIMEOFDAY
+# define HAS_TM_GMTOFF
+# define HAS_SYSEXITS_H
+# define HAS_TM_ZONE
+# define HAS_STRFTIME
+# define HAS_TZNAME
+# define HAS_STRCASECMP
+# undef  HAS_STRICMP
+# define HAS_STRERROR
+# undef  DO_BINARY
+# undef  DO_DOSIFY
+# define HAS_SYSLOG
+# define HAS_SNPRINTF
+# define HAS_HARDLINKS
+# define HAS_POSIX_REGEX
 #endif
 
 #ifdef ISC			/* ISC 3.x, GNU gcc, -DISC necessary */
