aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-12-19 22:43:59 +0800
committersobomax <sobomax@FreeBSD.org>2001-12-19 22:43:59 +0800
commit2c0ee0b70e4486cc951a297f1212b98e6a42d657 (patch)
tree2b3f4c96701bbfde542778764c027df38d9a3e5b
parent6f6b9b0c8993c9a90ecdbf863ad8b815f8a6b9b1 (diff)
downloadfreebsd-ports-gnome-2c0ee0b70e4486cc951a297f1212b98e6a42d657.tar.gz
freebsd-ports-gnome-2c0ee0b70e4486cc951a297f1212b98e6a42d657.tar.zst
freebsd-ports-gnome-2c0ee0b70e4486cc951a297f1212b98e6a42d657.zip
Unbroke on -current: don't prototype/implement strnstr(3) - this function
is already in libc.
-rw-r--r--lang/eperl/files/patch-eperl_parse.c26
-rw-r--r--lang/eperl/files/patch-eperl_proto.h13
2 files changed, 39 insertions, 0 deletions
diff --git a/lang/eperl/files/patch-eperl_parse.c b/lang/eperl/files/patch-eperl_parse.c
new file mode 100644
index 000000000000..fe0ee26898cc
--- /dev/null
+++ b/lang/eperl/files/patch-eperl_parse.c
@@ -0,0 +1,26 @@
+
+$FreeBSD$
+
+--- eperl_parse.c 2001/12/19 14:40:20 1.1
++++ eperl_parse.c 2001/12/19 14:40:33
+@@ -298,20 +298,6 @@
+ return NULL;
+ }
+
+-char *strnstr(char *buf, char *str, int n)
+-{
+- char *cp;
+- char *cpe;
+- int len;
+-
+- len = strlen(str);
+- for (cp = buf, cpe = buf+n-len; cp <= cpe; cp++) {
+- if (strncmp(cp, str, len) == 0)
+- return cp;
+- }
+- return NULL;
+-}
+-
+ char *strncasestr(char *buf, char *str, int n)
+ {
+ char *cp;
diff --git a/lang/eperl/files/patch-eperl_proto.h b/lang/eperl/files/patch-eperl_proto.h
new file mode 100644
index 000000000000..4038c60b440f
--- /dev/null
+++ b/lang/eperl/files/patch-eperl_proto.h
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- eperl_proto.h 2001/12/19 14:37:46 1.1
++++ eperl_proto.h 2001/12/19 14:39:24
+@@ -79,7 +79,6 @@
+ extern char *ePerl_Efwrite(char *cpBuf, int nBuf, int cNum, char *cpOut);
+ extern char *ePerl_Cfwrite(char *cpBuf, int nBuf, int cNum, char *cpOut);
+ extern char *strnchr(char *buf, char chr, int n);
+-extern char *strnstr(char *buf, char *str, int n);
+ extern char *strncasestr(char *buf, char *str, int n);
+ extern char *strndup(char *buf, int n);
+ extern char *ePerl_Bristled2Plain(char *cpBuf);