Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 18327 invoked by uid 6000); 13 Dec 1999 20:24:57 -0000 Received: (qmail 18115 invoked from network); 13 Dec 1999 20:24:51 -0000 Received: from stortek.stortek.com (129.80.22.249) by taz.hyperreal.org with SMTP; 13 Dec 1999 20:24:51 -0000 Received: from swmail-atm6.StorTek.COM (swmail.stortek.com [129.80.120.123]) by stortek.stortek.com (8.9.3/8.9.3) with ESMTP id NAA02709 for ; Mon, 13 Dec 1999 13:23:57 -0700 (MST) Received: from sanitas (sanitas.stortek.com [129.80.60.133]) by swmail-atm6.StorTek.COM with ESMTP (8.7.6/8.7.3) id NAA11042 for ; Mon, 13 Dec 1999 13:23:56 -0700 (MST) From: pg@sweng.stortek.com Received: by sanitas (8.8.8+Sun/rem1.3) id NAA16411; Mon, 13 Dec 1999 13:23:55 -0700 (MST) Message-id: <199912132023.NAA16411@sanitas> Subject: [PATCH] OS/390 v1r2 tweaks To: new-httpd@apache.org (Apache Developers List) Date: Mon, 13 Dec 1999 13:23:55 -0700 (MST) X-Mailer: ELM [version 2.5 PL0] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org Status: O 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 +#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 #endif /* TPF */ #include +#if defined(OS390) && !defined(NO_ADDRESS) +#define NO_ADDRESS NO_DATA /* Not defined properly by OS/390 v1r2 */ +#endif #include #if !defined(MPE) && !defined(BEOS) && !defined(TPF) #include /* for inet_ntoa */