From c5c6d2fac3275e32e418f73e85b951a36c716fbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Wed, 23 Sep 2020 11:40:41 +0000 Subject: [PATCH] Fix build with -fno-common --- lang/mmix/Makefile | 1 + lang/mmix/files/patch-mmix-config.w | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 lang/mmix/files/patch-mmix-config.w diff --git a/lang/mmix/Makefile b/lang/mmix/Makefile index 9e4f4c621c54..6aae733c1728 100644 --- a/lang/mmix/Makefile +++ b/lang/mmix/Makefile @@ -3,6 +3,7 @@ PORTNAME= mmix PORTVERSION= 20160804 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= http://mmix.cs.hm.edu/src/ diff --git a/lang/mmix/files/patch-mmix-config.w b/lang/mmix/files/patch-mmix-config.w new file mode 100644 index 000000000000..932dc5adcd86 --- /dev/null +++ b/lang/mmix/files/patch-mmix-config.w @@ -0,0 +1,11 @@ +--- mmix-config.w.orig 2014-11-20 17:38:57 UTC ++++ mmix-config.w +@@ -357,7 +357,7 @@ print error messages. + + @= + FILE *config_file; /* input comes from here */ +-char buffer[BUF_SIZE]; /* input lines go here */ ++extern char buffer[BUF_SIZE]; /* input lines go here */ + char token[BUF_SIZE]; /* and tokens are copied to here */ + char *buf_pointer=buffer; /* this is our current position */ + bool token_prescanned; /* does |token| contain the next token already? */