<div dir="ltr">Hello,<div><br></div><div>While porting SANE to OpenWRT, I needed to patch SANE in order to compile it using musl (default libc in OpenWRT trunk). The problem is that u_char and u_long was not defined. glibc seems to be fine without it.</div><div><br></div><div>The fix is quite simple: I added '<span style="color:rgb(0,0,0);font-family:monospace">#include <sys/types.h></span>' to these files:</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">/include/sane/sanei_udp.h
</span><br><span style="color:rgb(0,0,0)">/backend/kvs20xx_cmd.h
</span><br><span style="color:rgb(0,0,0)">/backend/kvs40xx.h
</span><br><span style="color:rgb(0,0,0)">/backend/hp5400.c
</span><br><span style="color:rgb(0,0,0)">/backend/hp5590.c</span><br></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><br></span></span></div><div><font color="#000000" face="monospace">I have the patch (attached) for it but it is based on 1.0.24.</font></div><div><font color="#000000" face="monospace">Is this the best solution?</font></div><div><font color="#000000" face="monospace">Also, I would be interesting to have a fix upstream.</font></div><div><font color="#000000" face="monospace"><br></font></div><div><font color="#000000" face="monospace">Regards,</font></div></div>