Fix build with -fno-common

This commit is contained in:
Stefan Eßer 2020-09-03 12:05:26 +00:00
parent f9f25d48a2
commit 51197d9b0d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=547437
2 changed files with 16 additions and 1 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= bc
DISTVERSION= 1.07.1
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= math
MASTER_SITES= GNU
PKGNAMEPREFIX= gnu

View file

@ -0,0 +1,15 @@
--- bc/global.h.orig 2017-04-07 22:20:02 UTC
+++ bc/global.h
@@ -112,9 +112,9 @@ EXTERN int n_history;
#if defined(LIBEDIT)
/* LIBEDIT data */
-EditLine *edit INIT(NULL);
-History *hist;
-HistEvent histev;
+EXTERN EditLine *edit INIT(NULL);
+EXTERN History *hist;
+EXTERN HistEvent histev;
#endif
/* "Condition code" -- false (0) or true (1) */