summaryrefslogtreecommitdiff
path: root/mail/autorespond/patches
diff options
context:
space:
mode:
authorwiz <wiz>2006-02-19 00:00:22 +0000
committerwiz <wiz>2006-02-19 00:00:22 +0000
commit05e44c5ee03a0b06fc53deb54a3face8bb339470 (patch)
tree585b78c58bc38f868c9187630be352f43bcde678 /mail/autorespond/patches
parent1ce5e2c1ee890279f8bd594bbad63af11c3a5e3f (diff)
downloadpkgsrc-05e44c5ee03a0b06fc53deb54a3face8bb339470.tar.gz
Just rename strcasestr to mystrcasestr, to avoid
conflicts with builtin strcasestr on DF and NetBSD.
Diffstat (limited to 'mail/autorespond/patches')
-rw-r--r--mail/autorespond/patches/patch-aa37
1 files changed, 23 insertions, 14 deletions
diff --git a/mail/autorespond/patches/patch-aa b/mail/autorespond/patches/patch-aa
index 404bbc852aa..8c1b83684bf 100644
--- a/mail/autorespond/patches/patch-aa
+++ b/mail/autorespond/patches/patch-aa
@@ -1,22 +1,31 @@
-$NetBSD: patch-aa,v 1.1 2006/01/08 17:55:31 joerg Exp $
+$NetBSD: patch-aa,v 1.2 2006/02/19 00:00:22 wiz Exp $
---- autorespond.c.orig 2006-01-08 17:51:50.000000000 +0000
+--- autorespond.c.orig 2003-09-18 20:17:57.000000000 +0000
+++ autorespond.c
-@@ -372,7 +372,7 @@ void read_headers( FILE *fp )
- }
-
-
--
-+#if !defined(__DragonFly__)
+@@ -376,7 +376,7 @@ void read_headers( FILE *fp )
/*********************************************************
** find string in string - ignore case **/
-@@ -398,7 +398,7 @@ char *strcasestr( char *_s1, char *_s2 )
- else
- return _s1 + (ptr - s1);
- }
--
-+#endif
+-char *strcasestr( char *_s1, char *_s2 )
++char *mystrcasestr( char *_s1, char *_s2 )
+ {
+ char *s1;
+ char *s2;
+@@ -419,7 +419,7 @@ char *inspect_headers( char * tag, char
+ if ( ss == (char *)NULL )
+ return act_header->content;
+- if ( strcasestr( act_header->content, ss ) != (char *)NULL )
++ if ( mystrcasestr( act_header->content, ss ) != (char *)NULL )
+ return act_header->content;
+ return (char *)NULL;
+@@ -440,7 +440,7 @@ char *get_content_boundary()
+ if ( (s = inspect_headers( "Content-Type", (char *)NULL )) == (char *)NULL)
+ return (char *)NULL;
+- if ( (r = strcasestr( s, "boundary=" )) == (char *)NULL)
++ if ( (r = mystrcasestr( s, "boundary=" )) == (char *)NULL)
+ return (char *)NULL;
+
+ *(r+strlen(r)-2) = '\0'; /* delete quote at the end */