summaryrefslogtreecommitdiff
path: root/lang/p5-ePerl/files/patch-eperl_proto.h
blob: be4a28b7f8bceed9420466acb3d915ec6be0b23c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- eperl_proto.h.orig	1998-07-10 07:52:24 UTC
+++ eperl_proto.h
@@ -36,6 +36,7 @@
 #define EPERL_PROTO_H 1
 
 /*_BEGIN_PROTO_*/
+#include "eperl_getopt.h"
 
 /* eperl_main.c */
 extern int mode;
@@ -79,9 +80,14 @@ extern char *strnchr(char *buf, char chr, int n);
 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 *strnstr(char *buf, char *str, int n);*/
 extern char *strncasestr(char *buf, char *str, int n);
+#if defined(__FreeBSD__)
+#include <osreldate.h>
+#if __FreeBSD_version <= 800057 && __FreeBSD_version > 800000 || __FreeBSD_version <= 701100
 extern char *strndup(char *buf, int n);
+#endif
+#endif
 extern char *ePerl_Bristled2Plain(char *cpBuf);
 
 /* eperl_pp.c */