diff options
author | Cem Keylan <cem@ckyln.com> | 2020-08-03 21:29:37 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-08-03 21:29:37 +0300 |
commit | 452372b3f917edeea71d250b228d2cf673bb4f70 (patch) | |
tree | 487624d8080a46df23f8e55f3fed1ec2d982a952 /core/libelf/patches | |
parent | 7f2e3be5544a74bb0d5207897dff3d21ec1b512a (diff) | |
download | repository-452372b3f917edeea71d250b228d2cf673bb4f70.tar.gz |
libelf: switch to elfutils
Diffstat (limited to 'core/libelf/patches')
-rw-r--r-- | core/libelf/patches/musl-decls.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/core/libelf/patches/musl-decls.patch b/core/libelf/patches/musl-decls.patch new file mode 100644 index 00000000..e3705695 --- /dev/null +++ b/core/libelf/patches/musl-decls.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. */ |