summaryrefslogtreecommitdiff
path: root/textproc/2bsd-diff/files/patch-diff.c
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-03-23 07:24:20 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-03-23 07:24:20 +0000
commit52bd9c4f01eb576473eee1ddf5a8ac491bfbbb45 (patch)
tree8a3bb3cb8aa8cb6833ee78dd396f436b5684f1c9 /textproc/2bsd-diff/files/patch-diff.c
parentRemove unused MASTER_SITE_SUBDIR. (diff)
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
Notes
Notes: svn path=/head/; revision=77225
Diffstat (limited to '')
-rw-r--r--textproc/2bsd-diff/files/patch-diff.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/textproc/2bsd-diff/files/patch-diff.c b/textproc/2bsd-diff/files/patch-diff.c
new file mode 100644
index 000000000000..6be748081b3d
--- /dev/null
+++ b/textproc/2bsd-diff/files/patch-diff.c
@@ -0,0 +1,22 @@
+--- diff.c.orig Wed Nov 13 05:31:26 1991
++++ diff.c Wed Mar 19 01:31:23 2003
+@@ -176,9 +176,10 @@
+ return (a > b ? a : b);
+ }
+
++sig_t
+ done()
+ {
+- if (tempfile)
++ if (tempfile[0])
+ unlink(tempfile);
+ exit(status);
+ }
+@@ -198,7 +199,6 @@
+ char *p;
+ {
+ register char *q;
+- char *realloc();
+
+ if ((q = realloc(p, (unsigned)n)) == NULL)
+ noroom();