On Fri, Sep 14, 2001 at 03:23:35PM -0700, Aaron Bannert wrote:
> One note, more of a question to the other APR developers...see my inline
> comment:
>
> On Fri, Sep 14, 2001 at 03:15:47PM -0700, Aaron Bannert wrote:
> [snip]
> > #if !APR_HAVE_UNION_SEMUN && defined(APR_HAS_SYSVSEM_SERIALIZE)
> > /* it makes no sense, but this isn't defined on solaris */
> > union semun {
> > long val;
> > struct semid_ds *buf;
> > ushort *array;
> > };
> > #endif
> [snip]
>
> Since this is now defined in include/arch/unix/proc_mutex.h AND
> include/arch/unix/lock.h, if both are #included into a file there
> will be redifition errors/warnings. Should we invent a symbol to
> protect this section from double-inclusion?
No. It should just be defined in one spot (say lock.h), and proc_mutex.h
would then include lock.h.
Why would we even think of duplicating the definition, and then patching
around that?
Cheers,
-g
--
Greg Stein, http://www.lyra.org/