aboutsummaryrefslogtreecommitdiffstats
path: root/lang/bf2c
diff options
context:
space:
mode:
authorrene <rene@FreeBSD.org>2018-01-16 00:34:36 +0800
committerrene <rene@FreeBSD.org>2018-01-16 00:34:36 +0800
commitbf0915236ef3d66a56a7fd4e918ce6e4688dfc6c (patch)
tree19adebb4641dc6b4c767e44f647f845ae9e62cb6 /lang/bf2c
parentd1bcdcb6170891b20333777ae9b245d5fd6410c2 (diff)
downloadfreebsd-ports-gnome-bf0915236ef3d66a56a7fd4e918ce6e4688dfc6c.tar.gz
freebsd-ports-gnome-bf0915236ef3d66a56a7fd4e918ce6e4688dfc6c.tar.zst
freebsd-ports-gnome-bf0915236ef3d66a56a7fd4e918ce6e4688dfc6c.zip
lang/bf2c: fix build with clang 6
Submitted by: pkg-fallout
Diffstat (limited to 'lang/bf2c')
-rw-r--r--lang/bf2c/files/patch-bf2c.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/bf2c/files/patch-bf2c.cc b/lang/bf2c/files/patch-bf2c.cc
new file mode 100644
index 000000000000..9952426522e4
--- /dev/null
+++ b/lang/bf2c/files/patch-bf2c.cc
@@ -0,0 +1,11 @@
+--- bf2c.cc.orig 2013-06-12 22:11:38 UTC
++++ bf2c.cc
+@@ -57,7 +57,7 @@ int main(int argc, char *argv[]) {
+ pt = NULL;
+ infname = outfname = invchar = NULL;
+
+- printf("bf2c.cc "VERSION" Copyright (c) 2002-"ENDYEAR" Rene Ladan <r.c.ladan@gmail.com>\n\n"
++ printf("bf2c.cc " VERSION " Copyright (c) 2002-" ENDYEAR " Rene Ladan <r.c.ladan@gmail.com>\n\n"
+ "Optimizing BrainFuck to C compiler.\n\n");
+
+ while ((opt = getopt(argc,argv,"i:o:hs:r:")) != -1) {