aboutsummaryrefslogtreecommitdiffstats
path: root/www/w3c-httpd
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-04-01 12:00:45 +0800
committerkris <kris@FreeBSD.org>2002-04-01 12:00:45 +0800
commitf354eb0b13f829cd427b78b4fa6ab5b9585bb820 (patch)
tree5500f4b2393c8def808841fab6cbc42abb1e05f4 /www/w3c-httpd
parent226249bb7f7947035e7e569fc7bd8e4fb80d3858 (diff)
downloadfreebsd-ports-gnome-f354eb0b13f829cd427b78b4fa6ab5b9585bb820.tar.gz
freebsd-ports-gnome-f354eb0b13f829cd427b78b4fa6ab5b9585bb820.tar.zst
freebsd-ports-gnome-f354eb0b13f829cd427b78b4fa6ab5b9585bb820.zip
Remove internal strcasestr implementation to fix build.
Diffstat (limited to 'www/w3c-httpd')
-rw-r--r--www/w3c-httpd/files/patch-cb19
-rw-r--r--www/w3c-httpd/files/patch-cc44
2 files changed, 63 insertions, 0 deletions
diff --git a/www/w3c-httpd/files/patch-cb b/www/w3c-httpd/files/patch-cb
new file mode 100644
index 000000000000..d902dc9bb1b1
--- /dev/null
+++ b/www/w3c-httpd/files/patch-cb
@@ -0,0 +1,19 @@
+--- Library/Implementation/HTString.h.orig Sun Mar 31 20:01:23 2002
++++ Library/Implementation/HTString.h Sun Mar 31 20:01:33 2002
+@@ -22,16 +22,6 @@
+ extern int strcasecomp PARAMS((CONST char *a, CONST char *b));
+ extern int strncasecomp PARAMS((CONST char *a, CONST char *b, int n));
+
+-/*
+-
+-Case-insensitive string inside another string
+-
+- This works like strstr() but is not case-sensitive.
+-
+- */
+-
+-PUBLIC char * strcasestr PARAMS((char * s1,
+- char * s2));
+
+ /*
+
diff --git a/www/w3c-httpd/files/patch-cc b/www/w3c-httpd/files/patch-cc
new file mode 100644
index 000000000000..29943ef194f9
--- /dev/null
+++ b/www/w3c-httpd/files/patch-cc
@@ -0,0 +1,44 @@
+--- Library/Implementation/HTString.c.orig Sun Mar 31 20:00:59 2002
++++ Library/Implementation/HTString.c Sun Mar 31 20:01:11 2002
+@@ -58,41 +58,6 @@
+ #endif
+
+
+-/*
+- * strcasestr(s1,s2) -- like strstr(s1,s2) but case-insensitive.
+- */
+-PUBLIC char * strcasestr ARGS2(char *, s1,
+- char *, s2)
+-{
+- char * try = s1;
+-
+- if (!s1 || !s2 || !*s2) return s1;
+-
+- while (*try) {
+- if (TOUPPER(*try) == TOUPPER(*s2)) {
+- char * cur1 = try + 1;
+- char * cur2 = s2 + 1;
+- while (*cur1 && *cur2 && TOUPPER(*cur1) == TOUPPER(*cur2)) {
+- cur1++;
+- cur2++;
+- }
+- if (!*cur2) {
+- CTRACE(stderr,
+- "Debug....... strcasestr(s1 = \"%s\", s2 = \"%s\") => \"%s\"\n",
+- s1,s2,try);
+- return try;
+- }
+- }
+- try++;
+- }
+- CTRACE(stderr,
+- "Debug....... strcasestr(s1 = \"%s\", s2 = \"%s\") => No match\n",
+- s1,s2);
+- return NULL;
+-}
+-
+-
+-
+ /* Allocate a new copy of a string, and returns it
+ */
+ PUBLIC char * HTSACopy