Date: Tue, 25 Aug 2020 15:55:25 +0000 (UTC) From: Santhosh Raju <fox@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r546188 - head/editors/hnb/files Message-ID: <202008251555.07PFtPqx047834@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: fox Date: Tue Aug 25 15:55:25 2020 New Revision: 546188 URL: https://svnweb.freebsd.org/changeset/ports/546188 Log: editors/hnb: Fixes build on HEAD. Makes the globals used within the file to be static to prevent duplicate symbol while linking. Added: head/editors/hnb/files/ head/editors/hnb/files/patch-src_ui.c (contents, props changed) head/editors/hnb/files/patch-src_ui__draw.c (contents, props changed) Added: head/editors/hnb/files/patch-src_ui.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/hnb/files/patch-src_ui.c Tue Aug 25 15:55:25 2020 (r546188) @@ -0,0 +1,17 @@ +Make sure the globals in the file are static to prevent duplicate symbol during +linking. +--- src/ui.c.orig 2020-08-25 00:53:34 UTC ++++ src/ui.c +@@ -32,9 +32,9 @@ + #define UI_C + #include "ui.h" + +-int nodes_above; +-int active_line; +-int nodes_below; ++static int nodes_above; ++static int active_line; ++static int nodes_below; + int ui_inited = 0; + + void ui_init () Added: head/editors/hnb/files/patch-src_ui__draw.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/hnb/files/patch-src_ui__draw.c Tue Aug 25 15:55:25 2020 (r546188) @@ -0,0 +1,17 @@ +Make sure the globals in the file are static to prevent duplicate symbol during +linking. +--- src/ui_draw.c.orig 2020-08-25 00:53:47 UTC ++++ src/ui_draw.c +@@ -39,9 +39,9 @@ + + #define KEEPLINES 5 + +-int nodes_above; +-int active_line; +-int nodes_below; ++static int nodes_above; ++static int active_line; ++static int nodes_below; + + static Node *up (Node *sel, Node *node) + {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008251555.07PFtPqx047834>