summaryrefslogtreecommitdiff
path: root/editors/ex/patches
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2011-08-01 05:44:26 +0000
committerdholland <dholland@pkgsrc.org>2011-08-01 05:44:26 +0000
commit24eb3ed137bc31893ba0f49b6d6ac6360f5c8d7f (patch)
tree5a83038971fbd1554902fe0489eebc9cbec46d07 /editors/ex/patches
parentab3518a04475bcfd7e17eb294e5eb948efcf310b (diff)
downloadpkgsrc-24eb3ed137bc31893ba0f49b6d6ac6360f5c8d7f.tar.gz
Fix broken build with clang.
Diffstat (limited to 'editors/ex/patches')
-rw-r--r--editors/ex/patches/patch-exrecover_c23
1 files changed, 23 insertions, 0 deletions
diff --git a/editors/ex/patches/patch-exrecover_c b/editors/ex/patches/patch-exrecover_c
new file mode 100644
index 00000000000..2b114aae0c9
--- /dev/null
+++ b/editors/ex/patches/patch-exrecover_c
@@ -0,0 +1,23 @@
+$NetBSD: patch-exrecover_c,v 1.1 2011/08/01 05:47:40 dholland Exp $
+
+Fix illegal C caught by clang.
+
+--- exrecover.c~ 2002-04-07 12:02:27.000000000 +0000
++++ exrecover.c
+@@ -198,7 +198,7 @@ char *getblock __P((line, int));
+ int blkio __P((bloc, char *, ssize_t (*) __P((int, void *, size_t))));
+ char *poolsbrk __P((intptr_t));
+ int error __P((char *str, ...));
+-int listfiles __P((char *));
++void listfiles __P((char *));
+ int enter __P((struct svfile *, char *, int));
+ int qucmp __P((struct svfile *, struct svfile *));
+ int findtmp __P((char *));
+@@ -384,6 +384,7 @@ error(char *str, ...)
+ exit(1);
+ }
+
++void
+ listfiles(dirname)
+ char *dirname;
+ {