summaryrefslogtreecommitdiff
path: root/chat/zephyr/patches/patch-an
diff options
context:
space:
mode:
Diffstat (limited to 'chat/zephyr/patches/patch-an')
-rw-r--r--chat/zephyr/patches/patch-an25
1 files changed, 23 insertions, 2 deletions
diff --git a/chat/zephyr/patches/patch-an b/chat/zephyr/patches/patch-an
index 2f0d52bf97c..7f3098cf7f2 100644
--- a/chat/zephyr/patches/patch-an
+++ b/chat/zephyr/patches/patch-an
@@ -1,7 +1,28 @@
-$NetBSD: patch-an,v 1.1 2009/09/23 13:31:32 tnn Exp $
+$NetBSD: patch-an,v 1.2 2011/10/08 06:17:40 dholland Exp $
---- clients/zmailnotify/zmailnotify.c.orig 1997-10-25 23:47:11.000000000 +0200
+- check for hes_getmailhost before using it
+- avoid conflict with POSIX getline
+
+--- clients/zmailnotify/zmailnotify.c.orig 1997-10-25 21:47:11.000000000 +0000
+++ clients/zmailnotify/zmailnotify.c
+@@ -72,7 +72,7 @@ main(argc, argv)
+ int i,nbytes,retval,uselock;
+ struct passwd *pwd;
+ struct _mail mymail;
+-#ifdef HAVE_HESIOD
++#ifdef HAVE_HES_GETMAILHOST
+ struct hes_postoffice *p;
+ #endif
+
+@@ -104,7 +104,7 @@ main(argc, argv)
+ (void) sprintf(lockfile,"%s/.maillock",dir);
+
+ host = (char *)getenv("MAILHOST");
+-#ifdef HAVE_HESIOD
++#ifdef HAVE_HES_GETMAILHOST
+ if (host == NULL) {
+ p = hes_getmailhost(user);
+ if (p != NULL && strcmp(p->po_type, "POP") == 0)
@@ -144,7 +144,7 @@ main(argc, argv)
exit(1);
}