summaryrefslogtreecommitdiff
path: root/packages/glibc/2.27/0000-typedef-caddr.patch
blob: 980939b993d145150c5c324e7af7b7d94b37ee6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
 posix/sys/types.h |    3 +++
 1 file changed, 3 insertions(+)

--- a/posix/sys/types.h
+++ b/posix/sys/types.h
@@ -113,7 +113,10 @@
 #ifdef	__USE_MISC
 # 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