pkgsrc/comms/fidogate/patches/patch-ac
joerg 65e54b0ea5 Remove redundant errno and use stdlib.h instead of defining the
prototypes manually and possibly mismatching. Update FreeBSD
config to match both DragonFly and FreeBSD 4+ reality.
2005-12-19 15:10:18 +00:00

60 lines
1.6 KiB
Text

$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 */