summaryrefslogtreecommitdiff
path: root/sci-electronics/xnec2c/files/xnec2c-4.4.5-musl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sci-electronics/xnec2c/files/xnec2c-4.4.5-musl.patch')
-rw-r--r--sci-electronics/xnec2c/files/xnec2c-4.4.5-musl.patch63
1 files changed, 0 insertions, 63 deletions
diff --git a/sci-electronics/xnec2c/files/xnec2c-4.4.5-musl.patch b/sci-electronics/xnec2c/files/xnec2c-4.4.5-musl.patch
deleted file mode 100644
index a995463224b0..000000000000
--- a/sci-electronics/xnec2c/files/xnec2c-4.4.5-musl.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-diff --git a/src/mathlib.c b/src/mathlib.c
-index 5354240..b28033e 100644
---- a/src/mathlib.c
-+++ b/src/mathlib.c
-@@ -155,9 +155,6 @@ int open_mathlib(mathlib_t *lib)
- return 0;
- }
-
-- if (dlinfo(lib->handle, RTLD_DI_LMID, &lib->lmid) == -1)
-- printf("dlinfo: %s: %s\n", lib->lib, dlerror());
--
- // Call the init() function if configured
- if (lib->init != NULL)
- lib->init(lib);
-@@ -217,14 +214,7 @@ void init_mathlib()
- mathlibs[libidx].available = 1;
-
- // At this point the library load was successful, provide detail:
-- if (mathlibs[libidx].handle != NULL)
-- {
-- char lpath[PATH_MAX];
-- dlinfo(mathlibs[libidx].handle, RTLD_DI_ORIGIN, lpath);
-- printf(" loaded ok: %s/%s\n", lpath, mathlibs[libidx].lib);
-- }
-- else
-- printf(" loaded ok.\n");
-+ printf(" loaded ok.\n");
-
- // Set the default to the first one we find:
- if (current_mathlib == NULL)
-diff --git a/src/utils.c b/src/utils.c
-index b803402..1462df2 100644
---- a/src/utils.c
-+++ b/src/utils.c
-@@ -17,7 +17,7 @@
- * https://www.xnec2c.org/
- */
-
--#include <execinfo.h>
-+//#include <execinfo.h>
-
- #include "utils.h"
- #include "shared.h"
-@@ -736,18 +736,7 @@ void _print_backtrace(char **strings)
- // Return an array of backtrace strings. The value returned must be free()'ed.
- char **_get_backtrace()
- {
-- void *array[10];
-- char **strings;
-- int size;
--
-- size = backtrace(array, 10);
-- strings = backtrace_symbols(array, size);
--
-- // This wastes an array entry, but allows _print_backtrace() to find
-- // the end of the list without realloc'ing space for a NULL:
-- strings[size-1] = NULL;
--
-- return strings;
-+ return NULL;
- }
-
- void print_backtrace(char *msg)