1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

Fix build with -fno-common

This commit is contained in:
Stefan Eßer 2020-09-23 11:40:41 +00:00
parent 243f975a08
commit c5c6d2fac3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=549681
2 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= mmix
PORTVERSION= 20160804
PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= http://mmix.cs.hm.edu/src/

View File

@ -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.
@<Global variables@>=
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? */