On Thu, 3 Jun 2004, Larry Rosenman wrote:

On Thu, 3 Jun 2004, Larry Rosenman wrote:

On Thu, 3 Jun 2004, Ilja Booij wrote:

hmm, I don't know if it's safe to just define _XOPEN_SOURCE to a value of 500 or higher. If I understand it correctly, it will then move from BSD to UNIX98 API for all socket APIs. I don't know if that's something that we want.

According to my FreeBSD 4.10 system (my 5.2-CURRENT system is broke at the moment), the shutdown(2) call is POSIX.

So, y'all may be mixing metaphors here, so to speak.

It's been confirmed that this is a header bug in UnixWare (their general
take is all is defined, and the feature test macros HIDE stuff that's against
the standard).

So, we just need to note that on UnixWare you need to hack the include file
until the fix makes it out into the field.

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;
--
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