summaryrefslogtreecommitdiff
path: root/packages/glibc/2.13/0038-typedef-caddr.patch
blob: 384338a660d3c8ae255012d893361b83a4af2c57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
 posix/sys/types.h  |    3 +++
 sunrpc/rpc/types.h |    3 +++
 2 files changed, 6 insertions(+)

--- a/posix/sys/types.h
+++ b/posix/sys/types.h
@@ -114,7 +114,10 @@
 #ifdef	__USE_BSD
 # ifndef __daddr_t_defined
 typedef __daddr_t daddr_t;
+#  if ! defined(caddr_t) && ! defined(__caddr_t_defined)
 typedef __caddr_t caddr_t;
+#   define __caddr_t_defined
+#  endif
 #  define __daddr_t_defined
 # endif
 #endif
--- a/sunrpc/rpc/types.h
+++ b/sunrpc/rpc/types.h
@@ -86,7 +86,10 @@
 #endif
 #ifndef __daddr_t_defined
 typedef __daddr_t daddr_t;
+# if ! defined(caddr_t) && ! defined(__caddr_t_defined)
 typedef __caddr_t caddr_t;
+#  define __caddr_t_defined
+# endif
 # define __daddr_t_defined
 #endif