summaryrefslogtreecommitdiff
path: root/packages/glibc/2.32/0000-typedef-caddr.patch
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2020-08-30 08:59:17 (GMT)
committerGitHub <noreply@github.com>2020-08-30 08:59:17 (GMT)
commit4e5bc43627582b11f11ebc1cedcfd1016f39c60e (patch)
tree3392086f1a61dd1b0b936e1afda13594f069a79e /packages/glibc/2.32/0000-typedef-caddr.patch
parenta2b4eab30cbb71a8185f377ff44a1e2b88801fa3 (diff)
parent107e8111c3f0dd394296d97cbaa20667b2e85e82 (diff)
Merge pull request #1371 from egtvedt/add-glibc-2.32
Add support for glibc 2.32
Diffstat (limited to 'packages/glibc/2.32/0000-typedef-caddr.patch')
-rw-r--r--packages/glibc/2.32/0000-typedef-caddr.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/glibc/2.32/0000-typedef-caddr.patch b/packages/glibc/2.32/0000-typedef-caddr.patch
new file mode 100644
index 0000000..451884c
--- /dev/null
+++ b/packages/glibc/2.32/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