1 |
commit: d7984e55155a9f8d7878f77e1513f8e37421cd36 |
2 |
Author: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Mar 20 16:37:13 2018 +0000 |
4 |
Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Mar 20 16:37:13 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=d7984e55 |
7 |
|
8 |
net-libs/libtirpc: add patch for types |
9 |
|
10 |
net-libs/libtirpc/files/libtirpc-1.0.3-musl_types.patch | 12 ++++++++++++ |
11 |
net-libs/libtirpc/libtirpc-1.0.3.ebuild | 1 + |
12 |
2 files changed, 13 insertions(+) |
13 |
|
14 |
diff --git a/net-libs/libtirpc/files/libtirpc-1.0.3-musl_types.patch b/net-libs/libtirpc/files/libtirpc-1.0.3-musl_types.patch |
15 |
new file mode 100644 |
16 |
index 0000000..96ad628 |
17 |
--- /dev/null |
18 |
+++ b/net-libs/libtirpc/files/libtirpc-1.0.3-musl_types.patch |
19 |
@@ -0,0 +1,12 @@ |
20 |
+diff -Naur libtirpc-1.0.3.orig/tirpc/rpc/types.h libtirpc-1.0.3/tirpc/rpc/types.h |
21 |
+--- libtirpc-1.0.3.orig/tirpc/rpc/types.h 2018-03-20 09:30:54.610040509 -0700 |
22 |
++++ libtirpc-1.0.3/tirpc/rpc/types.h 2018-03-20 09:33:43.502037484 -0700 |
23 |
+@@ -66,7 +66,7 @@ |
24 |
+ #define mem_free(ptr, bsize) free(ptr) |
25 |
+ |
26 |
+ |
27 |
+-#if defined __APPLE_CC__ || defined __FreeBSD__ |
28 |
++#if defined __APPLE_CC__ || defined __FreeBSD__ || (defined(__linux__) && !defined(__GLIBC__)) |
29 |
+ # define __u_char_defined |
30 |
+ # define __daddr_t_defined |
31 |
+ #endif |
32 |
|
33 |
diff --git a/net-libs/libtirpc/libtirpc-1.0.3.ebuild b/net-libs/libtirpc/libtirpc-1.0.3.ebuild |
34 |
index e7b8b0d..4ae380d 100644 |
35 |
--- a/net-libs/libtirpc/libtirpc-1.0.3.ebuild |
36 |
+++ b/net-libs/libtirpc/libtirpc-1.0.3.ebuild |
37 |
@@ -23,6 +23,7 @@ DEPEND="${RDEPEND} |
38 |
|
39 |
PATCHES=( |
40 |
"${FILESDIR}/${PN}-1.0.2-bcopy-to-memmove.patch" |
41 |
+ "${FILESDIR}/${PN}-1.0.3-musl_types.patch" |
42 |
) |
43 |
|
44 |
src_prepare() { |