2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-15 12:22:26 +00:00
repo/extra/libelf/patches/musl-decls.patch
Dylan Araps ee62c900f9
libelf: all hail elfutils 0.180
linux 5.8 is set to release soon and it is incompatible with
elftoolchain's libelf (dejavu). we are moving to the last
libelf library available(?), elfutils.
2020-08-01 14:10:20 +03:00

21 lines
450 B
Diff

--- 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. */