termux-packages/packages/sharutils/fix-duplicate-symbols.patch

45 lines
1.2 KiB
Diff

--- ./src/shar-opts.h 2015-05-30 21:04:12.000000000 +0530
+++ ./src/shar-opts.h.mod 2021-10-30 17:17:40.099631929 +0530
@@ -352,7 +352,7 @@
* global exported definitions
*/
#include "local.h"
-char const * const program_name;
+extern char const * const program_name;
extern bool initialization_done;
extern int optidx;
--- ./src/unshar-opts.h 2015-05-30 21:04:18.000000000 +0530
+++ ./src/unshar-opts.h.mod 2021-10-30 17:17:01.289631943 +0530
@@ -192,7 +192,7 @@
extern size_t separator_str_len;
#include "local.h"
-char const * const program_name;
+extern char const * const program_name;
/* * * * * *
--- ./src/uudecode-opts.h 2015-05-30 21:04:21.000000000 +0530
+++ ./src/uudecode-opts.h.mod 2021-10-30 17:18:33.319631908 +0530
@@ -170,7 +170,7 @@
* global exported definitions
*/
#include "local.h"
-char const * const program_name;
+extern char const * const program_name;
/* * * * * *
--- ./src/uuencode-opts.h 2015-05-30 21:04:25.000000000 +0530
+++ ./src/uuencode-opts.h.mod 2021-10-30 17:18:04.149631919 +0530
@@ -166,7 +166,7 @@
* global exported definitions
*/
#include "local.h"
-char const * const program_name;
+extern char const * const program_name;
/* * * * * *