aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/begin-end-decls.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-07-05 10:47:23 +0300
committerTimo Teräs <timo.teras@iki.fi>2013-07-05 10:47:23 +0300
commita8a349d0676f9efe53446cf18f3b15d7610f5a44 (patch)
tree70b79bc9638ad6cd6d7443641452dcac7edab9e8 /main/openrc/begin-end-decls.patch
parent8acf19f4cb1fdd436dcfb6d9bf61d4a0c3efa056 (diff)
downloadaports-a8a349d0676f9efe53446cf18f3b15d7610f5a44.tar.bz2
aports-a8a349d0676f9efe53446cf18f3b15d7610f5a44.tar.xz
main/openrc: build fix for musl (don't use libc internal defines)
Diffstat (limited to 'main/openrc/begin-end-decls.patch')
-rw-r--r--main/openrc/begin-end-decls.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/main/openrc/begin-end-decls.patch b/main/openrc/begin-end-decls.patch
new file mode 100644
index 0000000000..19e67949b9
--- /dev/null
+++ b/main/openrc/begin-end-decls.patch
@@ -0,0 +1,46 @@
+--- openrc-0.11.8.orig/src/libeinfo/einfo.h
++++ openrc-0.11.8/src/libeinfo/einfo.h
+@@ -48,7 +48,9 @@
+ # endif
+ #endif
+
+-__BEGIN_DECLS
++#ifdef __cplusplus
++extern "C" {
++#endif
+
+ /*! @brief Color types to use */
+ typedef enum
+@@ -140,5 +142,8 @@
+ /*! @brief Prefix each einfo line with something */
+ void eprefix(const char * EINFO_RESTRICT);
+
+-__END_DECLS
++#ifdef __cplusplus
++}
++#endif
++
+ #endif
+--- openrc-0.11.8.orig/src/librc/rc.h.in
++++ openrc-0.11.8/src/librc/rc.h.in
+@@ -31,7 +31,9 @@
+ #include <stdbool.h>
+ #include <stdio.h>
+
+-__BEGIN_DECLS
++#ifdef __cplusplus
++extern "C" {
++#endif
+
+ #define RC_PREFIX "@PREFIX@"
+ #define RC_SYSCONFDIR "@SYSCONFDIR@"
+@@ -563,5 +565,8 @@
+ * we have our own */
+ ssize_t rc_getline(char **, size_t *, FILE *);
+
+-__END_DECLS
++#ifdef __cplusplus
++}
++#endif
++
+ #endif