mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
ba8aeb02ea
This adds missing includes for sys/sysmacros.h which are needed with musl libc 1.1.23. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
26 lines
559 B
Diff
26 lines
559 B
Diff
--- a/Incremental.c
|
|
+++ b/Incremental.c
|
|
@@ -1620,6 +1620,10 @@ static int Incremental_container(struct
|
|
if (ra_all == ra_blocked)
|
|
return 0;
|
|
|
|
+#ifndef MDADM_FULL
|
|
+ return 0;
|
|
+#endif
|
|
+
|
|
/* Now move all suitable spares from spare container */
|
|
domains = domain_from_array(list, st->ss->name);
|
|
memcpy(suuid, uuid_zero, sizeof(int[4]));
|
|
--- a/util.c
|
|
+++ b/util.c
|
|
@@ -1221,7 +1221,9 @@ void wait_for(char *dev, int fd)
|
|
struct superswitch *superlist[] =
|
|
{
|
|
&super0, &super1,
|
|
+#ifdef MDADM_FULL
|
|
&super_ddf, &super_imsm,
|
|
+#endif
|
|
&mbr, &gpt,
|
|
NULL
|
|
};
|