<p dir="ltr">Olaf and Yurii,</p>
<p dir="ltr">The sys/type.h problem is the same I face while compiling with musl instead of glibc.<br>
There are just some files that miss it. I have a patch for them but it still misses the ifdef around it.<br>
Check the other patches that might easy your port.</p>
<p dir="ltr"><a href="https://github.com/openwrt/packages/blob/master/utils/sane-backends/patches/">https://github.com/openwrt/packages/blob/master/utils/sane-backends/patches/</a></p>
<p dir="ltr">Regards,</p>
<br><div class="gmail_quote"><div dir="ltr">Em sáb, 17 de out de 2015 01:36, Olaf Meeuwissen <<a href="mailto:paddy-hack@member.fsf.org">paddy-hack@member.fsf.org</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Yurii,<br>
<br>
Sorry for the late follow-up.<br>
<br>
Yurii Kolesnykov writes:<br>
<br>
> Hi Olaf, thanks for your feedback.<br>
> Sorry, I forgot to include this comment in previous email.<br>
><br>
>> > /*<br>
>> > * SANE types and defines<br>
>> > */<br>
>> > diff --git a/include/sane/sanei_backend.h b/include/sane/sanei_backend.h<br>
>> > index 1b5afe2..982dedc 100644<br>
>> > --- a/include/sane/sanei_backend.h<br>
>> > +++ b/include/sane/sanei_backend.h<br>
>> > @@ -96,7 +96,9 @@<br>
>> > # undef SIG_SETMASK<br>
>> > # endif<br>
>> ><br>
>> > +# ifndef __APPLE__<br>
>> > # define sigset_t int<br>
>> > +# endif<br>
>><br>
>> Can you explain what this is trying to fix? The sigset_t macro is<br>
>> undefined a bit above this. If sigset_t is still visible to the<br>
>> compiler, it wasn't a macro and the defines below will quite likely<br>
>> break things.<br>
><br>
> I had this error:<br>
><br>
> In file included from epsonds-jpeg.c:18:<br>
> In file included from ./epsonds.h:43:<br>
> In file included from ../include/sane/sanei_usb.h:69:<br>
> In file included from /usr/include/stdlib.h:65:<br>
> In file included from /usr/include/sys/wait.h:109:<br>
> In file included from /usr/include/sys/signal.h:154:<br>
> /usr/include/sys/_types/_sigset_t.h:30:28: error: cannot combine with previous 'type-name' declaration specifier<br>
> typedef __darwin_sigset_t        sigset_t;<br>
>                     ^<br>
> ../include/sane/sanei_backend.h:99:33: note: expanded from macro 'sigset_t'<br>
> # define sigset_t        int<br>
>                 ^<br>
> 1 error generated.<br>
<br>
Ok, so sigset_t wasn't a define.<br>
<br>
I've dug up some[1] info[2] on __darwin_sigset_t and it seems to just be<br>
a typedef for a 32 bit unsigned integer.  In that case, the other signal<br>
related defines in sanei_backend.h won't break.<br>
<br>
 [1] <a href="http://fxr.watson.org/fxr/ident?v=xnu-792;i=__darwin_sigset_t" rel="noreferrer" target="_blank">http://fxr.watson.org/fxr/ident?v=xnu-792;i=__darwin_sigset_t</a><br>
 [2] <a href="https://www.opensource.apple.com/source/xnu/xnu-792.6.56/bsd/sys/_types.h" rel="noreferrer" target="_blank">https://www.opensource.apple.com/source/xnu/xnu-792.6.56/bsd/sys/_types.h</a><br>
<br>
However, I don't think that your fix is the right way to go about fixing<br>
this.  It is really something that configure should check for.<br>
<br>
Feel free to keep using this patch yourself but I will not commit it to<br>
Alioth's master.<br>
<br>
Hope this helps,<br>
--<br>
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27<br>
Support Free Software               Support the Free Software Foundation<br>
<a href="https://my.fsf.org/donate" rel="noreferrer" target="_blank">https://my.fsf.org/donate</a>                        <a href="https://my.fsf.org/join" rel="noreferrer" target="_blank">https://my.fsf.org/join</a><br>
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9<br>
<br>
--<br>
sane-devel mailing list: <a href="mailto:sane-devel@lists.alioth.debian.org" target="_blank">sane-devel@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel" rel="noreferrer" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel</a><br>
Unsubscribe: Send mail with subject "unsubscribe your_password"<br>
             to <a href="mailto:sane-devel-request@lists.alioth.debian.org" target="_blank">sane-devel-request@lists.alioth.debian.org</a><br>
</blockquote></div><div dir="ltr">-- <br></div><p dir="ltr">Luiz Angelo Daros de Luca</p>