On Thu, 3 Jun 2004, Ilja Booij wrote:


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?

I was being conservative.  I'm not sure the "right thing" is the define
to 2.  If you feel that would work, feel free.



Ilja

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://twister.fastxs.net/mailman/listinfo/dbmail-dev



--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

Reply via email to