summaryrefslogtreecommitdiff
path: root/packages/glibc/2.33/0000-typedef-caddr.patch
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2021-02-14 02:56:42 (GMT)
committerGitHub <noreply@github.com>2021-02-14 02:56:42 (GMT)
commit8d30e8fd148af05ab86c2ce44f7c1955159c04e3 (patch)
tree26f360485d4ffd060d804296ffe338e60f7cf69e /packages/glibc/2.33/0000-typedef-caddr.patch
parent5b0e0127e189c08e433ae25dbceead63da5ef2d7 (diff)
parentacd3df9fd11ce8316ae3a8db724ee4e8b5ac23a2 (diff)
Merge pull request #1455 from egtvedt/add-binutils-2.36.1-and-glibc-2.33
Add binutils 2.36.1 and glibc 2.33
Diffstat (limited to 'packages/glibc/2.33/0000-typedef-caddr.patch')
-rw-r--r--packages/glibc/2.33/0000-typedef-caddr.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/glibc/2.33/0000-typedef-caddr.patch b/packages/glibc/2.33/0000-typedef-caddr.patch
new file mode 100644
index 0000000..451884c
--- /dev/null
+++ b/packages/glibc/2.33/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 @@ typedef __ssize_t ssize_t;
+ #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