diff options
Diffstat (limited to 'sys-libs/librpc/files')
3 files changed, 52 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> + diff --git a/sys-libs/librpc/files/librpc-20151104-perror.patch b/sys-libs/librpc/files/librpc-20151104-perror.patch new file mode 100644 index 000000000..c5f0fc2c0 --- /dev/null +++ b/sys-libs/librpc/files/librpc-20151104-perror.patch @@ -0,0 +1,11 @@ +--- librpc-uclibc-a921e3d/clnt_perror.c.old 2015-11-04 19:33:16.000000000 +0100 ++++ librpc-uclibc-a921e3d/clnt_perror.c 2016-08-30 10:11:16.410813772 +0100 +@@ -428,7 +428,7 @@ + } + + +-static void __attribute_used__ ++static void __attribute__((used)) + free_mem (void) + { + free (buf); diff --git a/sys-libs/librpc/files/librpc-20151104-sys-types.patch b/sys-libs/librpc/files/librpc-20151104-sys-types.patch new file mode 100644 index 000000000..197f5e0e6 --- /dev/null +++ b/sys-libs/librpc/files/librpc-20151104-sys-types.patch @@ -0,0 +1,14 @@ +--- librpc-uclibc-a921e3d/rpc/types.h.old 2015-11-04 19:33:16.000000000 +0100 ++++ librpc-uclibc-a921e3d/rpc/types.h 2016-08-30 10:08:22.426289916 +0100 +@@ -79,6 +79,11 @@ + #include <sys/types.h> + #endif + ++#if !defined(__GLIBC__) && !defined(__UCLIBC__) ++typedef gid_t __gid_t; ++typedef uid_t __uid_t; ++#endif ++ + #include <sys/time.h> + #include <sys/param.h> + |