<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Petr,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 18, 2019 at 5:32 AM Petr Vorel <<a href="mailto:petr.vorel@gmail.com">petr.vorel@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This fixes build for musl, which does not have <sys/ustat.h> nor<br>
typedef daddr_t. Musl does not define these as ustat is deprecated<br>
in favor of statfs() and daddr_t is ancient [1].<br>
<br>
Other libc also does not have <sys/ustat.h> (ustat support was removed<br>
from glibc in 2.28), but they have daddr_t.<br>
<br>
This brings <linux/types.h> dependency for ustat testing.<br>
<br>
Typedef is needed as sparc and mips have __kernel_daddr_t long,<br>
otherwise it's int.<br>
<br>
[1] <a href="https://www.openwall.com/lists/musl/2019/06/10/1" rel="noreferrer" target="_blank">https://www.openwall.com/lists/musl/2019/06/10/1</a><br>
<br>
Signed-off-by: Petr Vorel <<a href="mailto:petr.vorel@gmail.com" target="_blank">petr.vorel@gmail.com</a>><br></blockquote><div><span class="gmail_default" style="font-size:small"></span>Reviewed-by: Li Wang <<a href="mailto:liwang@redhat.com">liwang@redhat.com</a>><span class="gmail_default"></span> </div><div><br></div><div><span class="gmail_default" style="font-size:small">I don't have a try to build this with musl, but from my code review, the patch makes sense.</span></div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>