summaryrefslogtreecommitdiff
path: root/packages/glibc/2.30/0000-typedef-caddr.patch
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2019-10-01 06:41:14 (GMT)
committerGitHub <noreply@github.com>2019-10-01 06:41:14 (GMT)
commitc5cd702e25f2b6ededd1a7c291b2ee98036dcf79 (patch)
treec85af24159be15a1ef378838ce19f9cfab270af7 /packages/glibc/2.30/0000-typedef-caddr.patch
parentafaf7b9a25b5d77991002936be5c47fc5ff549de (diff)
parentfb1736fb488ec51e77c7d9b2ee271ae3f93715fc (diff)
Merge pull request #1232 from cpackham/glibc-2.30
Add glibc 2.30
Diffstat (limited to 'packages/glibc/2.30/0000-typedef-caddr.patch')
-rw-r--r--packages/glibc/2.30/0000-typedef-caddr.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/glibc/2.30/0000-typedef-caddr.patch b/packages/glibc/2.30/0000-typedef-caddr.patch
new file mode 100644
index 0000000..a328da1
--- /dev/null
+++ b/packages/glibc/2.30/0000-typedef-caddr.patch
@@ -0,0 +1,17 @@
+---
+ posix/sys/types.h | 3 +++
+ 1 file changed, 3 insertions(+)
+
+--- a/posix/sys/types.h
++++ b/posix/sys/types.h
+@@ -112,7 +112,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