mirror of
https://git.freebsd.org/ports.git
synced 2025-05-14 16:21:50 -04:00
We have not had a Perl older than 5.003 for probably 3 decades, so no need to check if the current version is "new" enough.
38 lines
848 B
C
38 lines
848 B
C
--- eperl_parse.c.orig 1998-07-10 07:50:48 UTC
|
|
+++ eperl_parse.c
|
|
@@ -298,6 +298,7 @@ char *strnchr(char *buf, char chr, int n)
|
|
return NULL;
|
|
}
|
|
|
|
+#ifdef NOTDEF
|
|
char *strnstr(char *buf, char *str, int n)
|
|
{
|
|
char *cp;
|
|
@@ -311,6 +312,7 @@ char *strnstr(char *buf, char *str, int n)
|
|
}
|
|
return NULL;
|
|
}
|
|
+#endif
|
|
|
|
char *strncasestr(char *buf, char *str, int n)
|
|
{
|
|
@@ -326,6 +328,9 @@ char *strncasestr(char *buf, char *str, int n)
|
|
return NULL;
|
|
}
|
|
|
|
+#if defined(__FreeBSD__)
|
|
+#include <osreldate.h>
|
|
+#if __FreeBSD_version <= 800057 && __FreeBSD_version > 800000 || __FreeBSD_version <= 701100
|
|
char *strndup(char *buf, int n)
|
|
{
|
|
char *cp;
|
|
@@ -334,7 +339,8 @@ char *strndup(char *buf, int n)
|
|
strncpy(cp, buf, n);
|
|
return cp;
|
|
}
|
|
-
|
|
+#endif
|
|
+#endif
|
|
|
|
/*
|
|
** convert buffer from bristled format to plain format
|