Fix "-fno-common" build

This commit is contained in:
kn 2021-02-01 17:40:49 +00:00
parent b779695ef4
commit b9d5175add
2 changed files with 18 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.8 2019/07/12 20:46:07 sthen Exp $
# $OpenBSD: Makefile,v 1.9 2021/02/01 17:40:49 kn Exp $
COMMENT= electronic periodic table of the elements
DISTNAME= epte-2.0.8
CATEGORIES= education
REVISION= 0
REVISION= 1
HOMEPAGE= http://www.toddmiller.com/epte/

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-endprog_c,v 1.1 2021/02/01 17:40:49 kn Exp $
Fix "-fno-common" build.
Index: endprog.c
--- endprog.c.orig
+++ endprog.c
@@ -293,7 +293,7 @@ modification follow.
#include <stdlib.h>
#include "periodic.h"
-FILE *Audio;
+extern FILE *Audio;
void endprog (int status)
{