1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add patches to get 2.1.b9 to compile

This commit is contained in:
Kris Kennaway 2002-06-03 01:36:38 +00:00
parent 17ad569499
commit 1a5a0b985a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=60505
4 changed files with 84 additions and 0 deletions

10
net/ns/files/patch-aa Normal file
View File

@ -0,0 +1,10 @@
--- indep-utils/webtrace-conv/ucb/utils.h.orig Tue May 28 17:13:35 2002
+++ indep-utils/webtrace-conv/ucb/utils.h Tue May 28 17:13:44 2002
@@ -107,7 +107,6 @@
/************* A really dumb implementation of strnstr and strcasestr ***********/
char *dumb_strnstr(char *str, char *substr, int n);
-const char *strcasestr(const char *string, const char *substr);
/*
***************** Socket convenience utilities ****************

32
net/ns/files/patch-ab Normal file
View File

@ -0,0 +1,32 @@
--- indep-utils/webtrace-conv/ucb/utils.cc.orig Tue May 28 17:14:30 2002
+++ indep-utils/webtrace-conv/ucb/utils.cc Tue May 28 17:14:39 2002
@@ -56,29 +56,6 @@
#include "utils.h"
/*
- * Case-insensitive version of strstr()
- */
-
-
-const char *
-strcasestr(const char *string, const char *substr)
-{
- int str_len, substr_len, cmplen, i;
- const char *ptr;
-
- str_len = strlen(string);
- substr_len = strlen(substr);
- cmplen = str_len - substr_len + 1;
-
- for (ptr = string, i=0; i<cmplen; i++, ptr++) {
- if (strncasecmp(ptr, substr, substr_len) == 0)
- return ptr;
- }
- return NULL;
-}
-
-
-/*
************* Dump out the hexification of the buffer ***********
*/
void dump_buf(FILE *std, char *buf, int retlen)

10
net/ns2/files/patch-aa Normal file
View File

@ -0,0 +1,10 @@
--- indep-utils/webtrace-conv/ucb/utils.h.orig Tue May 28 17:13:35 2002
+++ indep-utils/webtrace-conv/ucb/utils.h Tue May 28 17:13:44 2002
@@ -107,7 +107,6 @@
/************* A really dumb implementation of strnstr and strcasestr ***********/
char *dumb_strnstr(char *str, char *substr, int n);
-const char *strcasestr(const char *string, const char *substr);
/*
***************** Socket convenience utilities ****************

32
net/ns2/files/patch-ab Normal file
View File

@ -0,0 +1,32 @@
--- indep-utils/webtrace-conv/ucb/utils.cc.orig Tue May 28 17:14:30 2002
+++ indep-utils/webtrace-conv/ucb/utils.cc Tue May 28 17:14:39 2002
@@ -56,29 +56,6 @@
#include "utils.h"
/*
- * Case-insensitive version of strstr()
- */
-
-
-const char *
-strcasestr(const char *string, const char *substr)
-{
- int str_len, substr_len, cmplen, i;
- const char *ptr;
-
- str_len = strlen(string);
- substr_len = strlen(substr);
- cmplen = str_len - substr_len + 1;
-
- for (ptr = string, i=0; i<cmplen; i++, ptr++) {
- if (strncasecmp(ptr, substr, substr_len) == 0)
- return ptr;
- }
- return NULL;
-}
-
-
-/*
************* Dump out the hexification of the buffer ***********
*/
void dump_buf(FILE *std, char *buf, int retlen)