[sane-devel] musl compatibility

Luiz Angelo Daros de Luca luizluca at gmail.com
Thu Aug 27 20:55:11 UTC 2015


Hello,

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.

The fix is quite simple: I added '#include <sys/types.h>' to these files:

/include/sane/sanei_udp.h
/backend/kvs20xx_cmd.h
/backend/kvs40xx.h
/backend/hp5400.c
/backend/hp5590.c

I have the patch (attached) for it but it is based on 1.0.24.
Is this the best solution?
Also, I would be interesting to have a fix upstream.

Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20150827/9447bbca/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 030-musl.patch
Type: text/x-patch
Size: 1161 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20150827/9447bbca/attachment.bin>


More information about the sane-devel mailing list