[sane-devel] [PATCH] Port to OS X
yurikoles at gmail.com
Wed Oct 7 16:50:11 UTC 2015
Hi Olaf, thanks for your feedback.
Sorry, I forgot to include this comment in previous email.
> > /*
> > * SANE types and defines
> > */
> > diff --git a/include/sane/sanei_backend.h b/include/sane/sanei_backend.h
> > index 1b5afe2..982dedc 100644
> > --- a/include/sane/sanei_backend.h
> > +++ b/include/sane/sanei_backend.h
> > @@ -96,7 +96,9 @@
> > # undef SIG_SETMASK
> > # endif
> > +# ifndef __APPLE__
> > # define sigset_t int
> > +# endif
> Can you explain what this is trying to fix? The sigset_t macro is
> undefined a bit above this. If sigset_t is still visible to the
> compiler, it wasn't a macro and the defines below will quite likely
> break things.
I had this error:
In file included from epsonds-jpeg.c:18:
In file included from ./epsonds.h:43:
In file included from ../include/sane/sanei_usb.h:69:
In file included from /usr/include/stdlib.h:65:
In file included from /usr/include/sys/wait.h:109:
In file included from /usr/include/sys/signal.h:154:
/usr/include/sys/_types/_sigset_t.h:30:28: error: cannot combine with previous 'type-name' declaration specifier
typedef __darwin_sigset_t sigset_t;
../include/sane/sanei_backend.h:99:33: note: expanded from macro 'sigset_t'
# define sigset_t int
1 error generated.
More information about the sane-devel