diff --git a/editors/hnb/files/patch-src_ui.c b/editors/hnb/files/patch-src_ui.c new file mode 100644 index 000000000000..b4a08b0c2984 --- /dev/null +++ b/editors/hnb/files/patch-src_ui.c @@ -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 () diff --git a/editors/hnb/files/patch-src_ui__draw.c b/editors/hnb/files/patch-src_ui__draw.c new file mode 100644 index 000000000000..ebc4752c0c6a --- /dev/null +++ b/editors/hnb/files/patch-src_ui__draw.c @@ -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) + {