[sane-devel] musl compatibility

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


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:


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.

-------------- 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