From 52bd9c4f01eb576473eee1ddf5a8ac491bfbbb45 Mon Sep 17 00:00:00 2001 From: Norikatsu Shigemura Date: Sun, 23 Mar 2003 07:24:20 +0000 Subject: Add 2bsd-diff 2.11, 2.11BSD diff utility. It can process large files with less memory. GNU Diff often can not work with files larger than 33% of datasize (from limit) due to memory exhaustion. PR: ports/50097 Submitted by: risner@stdio.com --- textproc/2bsd-diff/files/patch-diff.h | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 textproc/2bsd-diff/files/patch-diff.h (limited to 'textproc/2bsd-diff/files/patch-diff.h') diff --git a/textproc/2bsd-diff/files/patch-diff.h b/textproc/2bsd-diff/files/patch-diff.h new file mode 100644 index 000000000000..31670f3f50f9 --- /dev/null +++ b/textproc/2bsd-diff/files/patch-diff.h @@ -0,0 +1,37 @@ +--- diff.h.orig Thu Aug 29 06:44:35 1985 ++++ diff.h Wed Mar 19 01:35:49 2003 +@@ -5,10 +5,11 @@ + */ + + #include ++#include + #include + #include + #include +-#include ++#include + #include + + /* +@@ -61,7 +62,7 @@ + */ + int status; + int anychange; +-char *tempfile; /* used when comparing against std input */ ++char tempfile[MAXPATHLEN]; /* used when comparing against std input */ + + /* + * Variables for diffdir. +@@ -77,9 +78,9 @@ + char *file1, *file2, *efile1, *efile2; + struct stat stb1, stb2; + +-char *malloc(), *talloc(), *ralloc(); ++char *talloc(), *ralloc(); + char *savestr(), *splice(), *splicen(); +-char *mktemp(), *copytemp(), *rindex(); +-int done(); ++char *copytemp(); ++sig_t done(); + + extern char diffh[], diff[], pr[]; -- cgit v1.2.3