aboutsummaryrefslogtreecommitdiffstats
path: root/main/pax-utils/musl-decl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/pax-utils/musl-decl.patch')
-rw-r--r--main/pax-utils/musl-decl.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/main/pax-utils/musl-decl.patch b/main/pax-utils/musl-decl.patch
new file mode 100644
index 0000000000..cbb23ada63
--- /dev/null
+++ b/main/pax-utils/musl-decl.patch
@@ -0,0 +1,24 @@
+--- ./elf.h.orig
++++ ./elf.h
+@@ -21,7 +21,9 @@
+
+ #include <features.h>
+
+-__BEGIN_DECLS
++#ifdef __cplusplus
++extern "C" {
++#endif
+
+ /* Standard ELF types. */
+
+@@ -3374,7 +3376,8 @@
+
+ #define R_TILEGX_NUM 130
+
+-
+-__END_DECLS
++#ifdef __cplusplus
++}
++#endif
+
+ #endif /* elf.h */