diff options
Diffstat (limited to 'meta-networking/recipes-daemons/autofs/autofs/0009-hash.h-include-sys-reg.h-instead-of-bits-reg.h.patch')
-rw-r--r-- | meta-networking/recipes-daemons/autofs/autofs/0009-hash.h-include-sys-reg.h-instead-of-bits-reg.h.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/autofs/autofs/0009-hash.h-include-sys-reg.h-instead-of-bits-reg.h.patch b/meta-networking/recipes-daemons/autofs/autofs/0009-hash.h-include-sys-reg.h-instead-of-bits-reg.h.patch new file mode 100644 index 0000000000..442a3138c2 --- /dev/null +++ b/meta-networking/recipes-daemons/autofs/autofs/0009-hash.h-include-sys-reg.h-instead-of-bits-reg.h.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 1a08bbed376c0dfa0ce2d12a93b34fb2d5620c05 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Tue, 10 Sep 2024 21:08:09 +0800 | ||
4 | Subject: [PATCH] hash.h: include <sys/reg.h> instead of <bits/reg.h> | ||
5 | |||
6 | Fix build on musl: | ||
7 | In file included from ../include/automount.h:25, | ||
8 | from parse_subs.c:29: | ||
9 | ../include/hash.h:27:2: error: #error Wordsize not 32 or 64 | ||
10 | 27 | #error Wordsize not 32 or 64 | ||
11 | | ^~~~~ | ||
12 | |||
13 | Upstream-Status: Pending | ||
14 | |||
15 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
16 | --- | ||
17 | include/hash.h | 2 +- | ||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/include/hash.h b/include/hash.h | ||
21 | index 0f1d7b5..f465ab8 100644 | ||
22 | --- a/include/hash.h | ||
23 | +++ b/include/hash.h | ||
24 | @@ -6,7 +6,7 @@ | ||
25 | #ifdef __GLIBC__ | ||
26 | #include <bits/wordsize.h> | ||
27 | #else | ||
28 | -#include <bits/reg.h> | ||
29 | +#include <sys/reg.h> | ||
30 | #endif | ||
31 | #include <linux/stddef.h> | ||
32 | #include <sys/types.h> | ||
33 | -- | ||
34 | 2.25.1 | ||
35 | |||