summaryrefslogtreecommitdiff
path: root/packages/glibc/2.35/0000-typedef-caddr.patch
diff options
context:
space:
mode:
authorHans-Christian Noren Egtvedt <hegtvedt@cisco.com>2022-02-03 21:10:41 (GMT)
committerChris Packham <judge.packham@gmail.com>2022-02-09 07:56:28 (GMT)
commitc206f2fc3e7bc6819dfbb99f271ab08aa8f4301d (patch)
treebf823bf6c2d53c183208a8d239597b7f0d82c9e1 /packages/glibc/2.35/0000-typedef-caddr.patch
parent803f9b84f6ab4aa10f39139fb35add4de8e42455 (diff)
packages/glibc: add glibc version 2.35
Copied patches from glibc version 2.34, they still apply clean and I assume they still are relevant. Signed-off-by: Hans-Christian Noren Egtvedt <hegtvedt@cisco.com> [cp add __convert_scm_timestamps patch] Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'packages/glibc/2.35/0000-typedef-caddr.patch')
-rw-r--r--packages/glibc/2.35/0000-typedef-caddr.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/glibc/2.35/0000-typedef-caddr.patch b/packages/glibc/2.35/0000-typedef-caddr.patch
new file mode 100644
index 0000000..451884c
--- /dev/null
+++ b/packages/glibc/2.35/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