aboutsummaryrefslogtreecommitdiffstats
path: root/testing/elfutils/musl-cdefs.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-02-13 17:05:57 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-02-14 18:50:06 +0000
commit69a9add8425a3ac8a4ce5294354a543c63d35e39 (patch)
tree1cb92f6d6bf1e7d89587d0a66e85fbc74be41372 /testing/elfutils/musl-cdefs.patch
parent7fac29dc3dc6a41096bf5f204c541b70f967291e (diff)
downloadaports-69a9add8425a3ac8a4ce5294354a543c63d35e39.tar.bz2
aports-69a9add8425a3ac8a4ce5294354a543c63d35e39.tar.xz
testing/elfutils: new aport
A collection of utilities and DSOs to handle ELF files and DWARF data http://elfutils.org/
Diffstat (limited to 'testing/elfutils/musl-cdefs.patch')
-rw-r--r--testing/elfutils/musl-cdefs.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/elfutils/musl-cdefs.patch b/testing/elfutils/musl-cdefs.patch
new file mode 100644
index 0000000000..8497188515
--- /dev/null
+++ b/testing/elfutils/musl-cdefs.patch
@@ -0,0 +1,20 @@
+--- a/libelf/elf.h 2015-08-21 14:22:37.000000000 +0200
++++ b/libelf/elf.h 2015-11-20 04:54:33.948081321 +0100
+@@ -21,6 +21,17 @@
+
+ #include <features.h>
+
++#if !defined(__GLIBC__)
++/* C++ needs to know that types and declarations are C, not C++. */
++#ifdef __cplusplus
++# define __BEGIN_DECLS extern "C" {
++# define __END_DECLS }
++#else
++# define __BEGIN_DECLS
++# define __END_DECLS
++#endif
++#endif
++
+ __BEGIN_DECLS
+
+ /* Standard ELF types. */