summaryrefslogtreecommitdiff
path: root/sysutils/44bsd-more/files/patch-ch.c
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2011-09-09 01:16:37 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2011-09-09 01:16:37 +0000
commit4e347ced58ba2809d0631b34db81e001c577c360 (patch)
tree532e1e1d495ab6744da0c594b4c5a6320bfa4550 /sysutils/44bsd-more/files/patch-ch.c
parent- Limit emacs vulnerability to > 21.* and <= 22.2 instead of just <= 22.2 (diff)
Fix build with clang.
Diffstat (limited to 'sysutils/44bsd-more/files/patch-ch.c')
-rw-r--r--sysutils/44bsd-more/files/patch-ch.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/sysutils/44bsd-more/files/patch-ch.c b/sysutils/44bsd-more/files/patch-ch.c
new file mode 100644
index 000000000000..78700d419db7
--- /dev/null
+++ b/sysutils/44bsd-more/files/patch-ch.c
@@ -0,0 +1,27 @@
+--- ch.c.orig 2011-09-08 01:03:22.000000000 +0800
++++ ch.c 2011-09-08 01:04:33.000000000 +0800
+@@ -48,6 +48,7 @@ static const char rcsid[] =
+ */
+
+ #include <sys/types.h>
++#include <stdlib.h>
+ #include <sys/file.h>
+ #include <unistd.h>
+ #include <stdio.h>
+@@ -391,6 +392,7 @@ ch_back_get()
+ * keep==1 means keep the data in the current buffers;
+ * otherwise discard the old data.
+ */
++void
+ ch_init(want_nbufs, keep)
+ int want_nbufs;
+ int keep;
+@@ -436,7 +438,7 @@ ch_addbuf(nnew)
+ {
+ register struct buf *bp;
+ register struct buf *newbufs;
+- char *calloc();
++ // char *calloc();
+
+ /*
+ * We don't have enough buffers.