I'd prefer to see this set up by autoconf and appearing in config.h. System
specific ifdef's deep inside the code are no fun! This sort of thing was
precisely the source of the md5 wordsize/endianness problem (ifdef __sparc).

Aaron


Ilja Booij <[EMAIL PROTECTED]> said:

> Larry Rosenman wrote:
> > Would the following diff be acceptable?  (the __USLC__ define is
> > the UnixWare CC's id).
> > 
> > 
> > Index: serverchild.c
> > ===================================================================
> > RCS file: /cvsroot-dbmail/dbmail/serverchild.c,v
> > retrieving revision 1.21
> > diff -u -r1.21 serverchild.c
> > --- serverchild.c   2004/06/03 09:58:31     1.21
> > +++ serverchild.c   2004/06/03 14:06:40
> > @@ -52,6 +52,11 @@
> >   #ifdef PROC_TITLES
> >   #include "proctitleutils.h"
> >   #endif
> > +#ifdef __USLC__
> > +#ifndef SHUT_RDWR
> > +#define SHUT_RDWR 2
> > +#endif
> > +#endif
> > 
> >   int ChildStopRequested = 0;
> >   int connected = 0;
> 
> Wouldn't it be easier and more general to exclude the #ifdef __USLC__ 
> line (and it's closing #endif) to make sure it always works when 
> SHUT_RDWR isn't defined?
> 
> Ilja
> 
> _______________________________________________
> Dbmail-dev mailing list
> Dbmail-dev@dbmail.org
> http://twister.fastxs.net/mailman/listinfo/dbmail-dev
> 



-- 



Reply via email to