mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Remove internal strcasestr implementation to fix build.
This commit is contained in:
parent
1bf1bf7eba
commit
f33affe258
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57108
10
japanese/mimekit/files/patch-ab
Normal file
10
japanese/mimekit/files/patch-ab
Normal file
@ -0,0 +1,10 @@
|
||||
--- ../include/ystring.h.orig Sun Mar 31 19:40:13 2002
|
||||
+++ ../include/ystring.h Sun Mar 31 19:40:18 2002
|
||||
@@ -18,7 +18,6 @@
|
||||
/*
|
||||
* non-standard
|
||||
*/
|
||||
-extern char *strcasestr();
|
||||
extern char *strrpbrk();
|
||||
extern char *stralloc();
|
||||
extern char *strtail();
|
25
japanese/mimekit/files/patch-ac
Normal file
25
japanese/mimekit/files/patch-ac
Normal file
@ -0,0 +1,25 @@
|
||||
--- ../rary/String.c.orig Sun Mar 31 19:39:46 2002
|
||||
+++ ../rary/String.c Sun Mar 31 19:40:03 2002
|
||||
@@ -72,22 +72,6 @@
|
||||
return strncasecmp(a,b,n) == 0;
|
||||
}
|
||||
|
||||
-char *
|
||||
-strcasestr(s1,s2)
|
||||
- char *s1,*s2;
|
||||
-{ char *p1;
|
||||
- int len;
|
||||
-
|
||||
- if( *s2 == 0 )
|
||||
- return s1;
|
||||
-
|
||||
- len = strlen(s2);
|
||||
- for( p1 = s1; *p1; p1 ++ )
|
||||
- if( toupper(*p1) == toupper(*s2) )
|
||||
- if( strncasecmp(p1,s2,len)==0 )
|
||||
- return p1;
|
||||
- return 0;
|
||||
-}
|
||||
char *strtoupper(s1,s2)
|
||||
char *s1,*s2;
|
||||
{
|
Loading…
Reference in New Issue
Block a user