httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [PATCH] OS/390 v1r2 tweaks
Date Mon, 13 Dec 1999 20:23:55 GMT
A couple macros that Ms. Brabson :-) had relied on are not
defined at OS/390 v1r2.  This provides alternatives.  I'm
skeptical of the value of "#define NSIG SIGDUMP+1" -- it's
scarcely a useful parameterization since future extensions
to the OS are less likely to change the value of SIGDUMP than
to add new SIG* codes with values higher than SIGDUMP.  It
might be better simply to unconditionally
"#define NSIG 40  /* Present highest signal (SIGDUMP) +1*/"

With these tweaks, httpd 1.3.10 compiles on OS/390 v1r2
and runs if invoked with "http -X".  Curiously, on OS/390 v2r7,
the same executable, compiled under v1r2 runs properly
without the "-X".  Appears, then, to be an OS bug.  Which
emphasizes the question of why I'm fussing with v1r2.
Or why we're still running production on v1r2.

-- gil
diff -bru orig/apache-1.3/src/include/ap_config.h apache-1.3/src/include/ap_config.h
--- orig/apache-1.3/src/include/ap_config.h	Fri Dec 10 04:12:20 1999
+++ apache-1.3/src/include/ap_config.h	Mon Dec 13 11:20:35 1999
@@ -956,8 +956,14 @@
 #define _POSIX_SOURCE
 #include <signal.h>
+#ifdef SIGDUMP  /* SIGDUMP is not defined by OS/390 v1r2 */
 #define NSIG SIGDUMP+1
+#define NSIG 40
 #define JMP_BUF sigjmp_buf
 #define _OPEN_MSGQ_EXT
@@ -1076,6 +1082,9 @@
 #include <netinet/in.h>
 #endif /* TPF */
 #include <netdb.h>
+#if defined(OS390) && !defined(NO_ADDRESS)
+#define NO_ADDRESS NO_DATA  /* Not defined properly by OS/390 v1r2 */
 #include <sys/ioctl.h>
 #if !defined(MPE) && !defined(BEOS) && !defined(TPF)
 #include <arpa/inet.h>		/* for inet_ntoa */

View raw message