1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Fix build with -fno-common

This commit is contained in:
Stefan Eßer 2020-09-30 11:03:29 +00:00
parent 16def30775
commit b0889bbad1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=550680
2 changed files with 14 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= polyglot
DISTVERSION= 1.4.70b
#PORTREVISION= 0
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://hardy.uhasselt.be/Toga/polyglot-release/ \
http://nivit.altervista.org/FreeBSD/ports/distfiles/

View File

@ -0,0 +1,13 @@
--- pgheader.h.orig 2012-09-20 11:50:03 UTC
+++ pgheader.h
@@ -10,8 +10,8 @@
#define PGHEADER_BAD_HEADER 6
-const char * pgheader_version;
-const char * pgheader_magic;
+extern const char * pgheader_version;
+extern const char * pgheader_magic;
/* This does some heuristic tests to make it reasonably sure we are dealing
with a Polyglot book.