httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p.@sweng.stortek.com
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
-- 
StorageTek
INFORMATION made POWERFUL
==============================================================================
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 USE_MMAP_FILES
 #define USE_FCNTL_SERIALIZED_ACCEPT
 #define _POSIX_SOURCE
+
 #include <signal.h>
+#ifdef SIGDUMP  /* SIGDUMP is not defined by OS/390 v1r2 */
 #define NSIG SIGDUMP+1
+#else
+#define NSIG 40
+#endif
+
 #define JMP_BUF sigjmp_buf
 #define _XOPEN_SOURCE_EXTENDED 1
 #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 */
+#endif
 #include <sys/ioctl.h>
 #if !defined(MPE) && !defined(BEOS) && !defined(TPF)
 #include <arpa/inet.h>		/* for inet_ntoa */

Mime
View raw message