diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2016-10-28 06:06:47 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2016-10-28 06:06:47 -0500 |
commit | 174ab1ab1e8bf7aaaebdb05ffe7365579e844c5e (patch) | |
tree | 9b48ed46f160f9ff224a519a930a526ff9bfefe4 /sys-libs/librpc/files/librpc-20151104-fix-throw-decls.patch | |
parent | a7b8777e296c246b3e6159312311188534c973e0 (diff) | |
download | packages-174ab1ab1e8bf7aaaebdb05ffe7365579e844c5e.tar.gz packages-174ab1ab1e8bf7aaaebdb05ffe7365579e844c5e.tar.bz2 packages-174ab1ab1e8bf7aaaebdb05ffe7365579e844c5e.tar.xz packages-174ab1ab1e8bf7aaaebdb05ffe7365579e844c5e.zip |
sys-libs/librpc: add new port (how did this escape?)
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.patch | 27 |
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> + |