aboutsummaryrefslogtreecommitdiffstats
path: root/community/nftlb/musl-fixes.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/nftlb/musl-fixes.patch')
-rw-r--r--community/nftlb/musl-fixes.patch49
1 files changed, 16 insertions, 33 deletions
diff --git a/community/nftlb/musl-fixes.patch b/community/nftlb/musl-fixes.patch
index da20a63fe7a..c3b5998f041 100644
--- a/community/nftlb/musl-fixes.patch
+++ b/community/nftlb/musl-fixes.patch
@@ -1,38 +1,21 @@
---- a/src/main.c
-+++ b/src/main.c
-@@ -26,7 +26,9 @@
- #include <syslog.h>
- #include <errno.h>
- #include <unistd.h>
-+#ifdef HAVE_EXECINFO_H
- #include <execinfo.h>
-+#endif
-
- #include "config.h"
- #include "objects.h"
-@@ -85,6 +87,7 @@
- exit(EXIT_SUCCESS);
- }
+diff --git a/zcutils/src/zcu_backtrace.c b/zcutils/src/zcu_backtrace.c
+index d755ac9..2914f46 100644
+--- a/zcutils/src/zcu_backtrace.c
++++ b/zcutils/src/zcu_backtrace.c
+@@ -20,6 +20,7 @@
+ */
+ #include "zcu_backtrace.h"
+#ifdef HAVE_EXECINFO_H
- static void nftlb_trace() {
- void *buffer[255];
- char **str;
-@@ -106,6 +109,7 @@
+ #include <execinfo.h>
+ #include "zcu_common.h"
+ #include "zcu_log.h"
+@@ -44,3 +45,7 @@ void zcu_bt_print_symbols()
- exit(EXIT_FAILURE);
+ free(str);
}
++
++#else
++void zcu_bt_print_symbols() {}
+#endif
-
- int main(int argc, char *argv[])
- {
-@@ -157,8 +161,7 @@
-
- if (signal(SIGINT, nftlb_sighandler) == SIG_ERR ||
- signal(SIGTERM, nftlb_sighandler) == SIG_ERR ||
-- signal(SIGPIPE, SIG_IGN) == SIG_ERR ||
-- signal(SIGSEGV, nftlb_trace) == SIG_ERR) {
-+ signal(SIGPIPE, SIG_IGN) == SIG_ERR) {
- fprintf(stderr, "Error assigning signals\n");
- syslog(LOG_ERR, "Error assigning signals");
- return EXIT_FAILURE;
+\ No newline at end of file