summaryrefslogtreecommitdiff
path: root/net-misc/asterisk/files/asterisk-13.32.0-binutils-2.34.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/asterisk/files/asterisk-13.32.0-binutils-2.34.patch')
-rw-r--r--net-misc/asterisk/files/asterisk-13.32.0-binutils-2.34.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/net-misc/asterisk/files/asterisk-13.32.0-binutils-2.34.patch b/net-misc/asterisk/files/asterisk-13.32.0-binutils-2.34.patch
new file mode 100644
index 000000000000..6ce797ca4f2d
--- /dev/null
+++ b/net-misc/asterisk/files/asterisk-13.32.0-binutils-2.34.patch
@@ -0,0 +1,18 @@
+--- a/main/backtrace.c 2020-03-12 07:37:03.000000000 -0700
++++ b/main/backtrace.c 2020-03-31 23:22:18.272691980 -0700
+@@ -64,6 +64,15 @@
+ #if defined(HAVE_DLADDR) && defined(HAVE_BFD) && defined(BETTER_BACKTRACES)
+ #include <dlfcn.h>
+ #include <bfd.h>
++#ifndef bfd_get_section_size
++#define bfd_get_section_size(x) bfd_section_size(x)
++#endif
++#ifndef bfd_get_section_vma
++#define bfd_get_section_vma(x, y) bfd_section_vma(y)
++#endif
++#ifndef bfd_get_section_flags
++#define bfd_get_section_flags(bfd, ptr) ((void) bfd, (ptr)->flags)
++#endif
+ #endif
+
+ #include <pthread.h>