math/galculator: zap duplicate definition to fix build with -fno-common

This commit is contained in:
naddy 2021-01-28 20:12:13 +00:00
parent c9b2d51a57
commit 6c9939ba8d
2 changed files with 17 additions and 2 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.61 2019/07/12 20:47:41 sthen Exp $
# $OpenBSD: Makefile,v 1.62 2021/01/28 20:12:13 naddy Exp $
COMMENT= GTK-based scientific calculator
GH_ACCOUNT= galculator
GH_PROJECT= galculator
GH_TAGNAME= v2.1.4
REVISION= 4
REVISION= 5
CATEGORIES= math
HOMEPAGE= http://galculator.mnim.org/

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_config_file_c,v 1.1 2021/01/28 20:12:13 naddy Exp $
Fix with -fno-common
Index: src/config_file.c
--- src/config_file.c.orig
+++ src/config_file.c
@@ -39,7 +39,6 @@
#include "config_file.h"
#include "general_functions.h"
-s_preferences prefs;
static s_prefs_entry prefs_list[53] = {
{"display_bkg_color", &(prefs.bkg_color), STRING, "prefs_bkg_color_button", set_button_color},
{"display_result_font", &(prefs.result_font), STRING, "prefs_result_font", set_button_font},