summaryrefslogtreecommitdiff
path: root/sys-libs/librpc/files/librpc-20151104-fix-throw-decls.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-libs/librpc/files/librpc-20151104-fix-throw-decls.patch')
-rw-r--r--sys-libs/librpc/files/librpc-20151104-fix-throw-decls.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/sys-libs/librpc/files/librpc-20151104-fix-throw-decls.patch b/sys-libs/librpc/files/librpc-20151104-fix-throw-decls.patch
new file mode 100644
index 000000000..fb97933ff
--- /dev/null
+++ b/sys-libs/librpc/files/librpc-20151104-fix-throw-decls.patch
@@ -0,0 +1,27 @@
+--- librpc-uclibc-a921e3d/rpc/compat.h.old 2015-11-04 19:33:16.000000000 +0100
++++ librpc-uclibc-a921e3d/rpc/compat.h 2016-08-30 10:01:17.226733271 +0100
+@@ -4,6 +4,24 @@
+ #define _XOPEN_SOURCE
+ #define _GNU_SOURCE
+
++#if !defined(__THROW)
++# if defined(__cplusplus)
++# define __THROW throw()
++# else
++# define __THROW
++# endif
++#endif
++
++#if !defined(__BEGIN_DECLS) && !defined(__END_DECLS)
++# if defined(__cplusplus)
++# define __BEGIN_DECLS extern "C" {
++# define __END_DECLS }
++# else
++# define __BEGIN_DECLS
++# define __END_DECLS
++# endif
++#endif
++
+ #include <features.h>
+ #include <errno.h>
+