Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 6264 invoked by uid 6000); 1 Nov 1997 01:29:07 -0000 Received: (qmail 6257 invoked from network); 1 Nov 1997 01:29:06 -0000 Received: from scanner.worldgate.com (198.161.84.3) by taz.hyperreal.org with SMTP; 1 Nov 1997 01:29:06 -0000 Received: from znep.com (uucp@localhost) by scanner.worldgate.com (8.8.7/8.8.7) with UUCP id SAA29003 for new-httpd@apache.org; Fri, 31 Oct 1997 18:29:04 -0700 (MST) Received: from localhost (marcs@localhost) by alive.znep.com (8.7.5/8.7.3) with SMTP id SAA16208 for ; Fri, 31 Oct 1997 18:33:26 -0700 (MST) Date: Fri, 31 Oct 1997 18:33:26 -0700 (MST) From: Marc Slemko To: TLOSAP Subject: [PATCH] sys/stat.h and sys/types.h again Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org In general, sys/types.h _needs_ to be included before sys/stat.h. BSD weenies have this thing about never daring include a header file more than once if they can help it, which results in you having to include sys/types.h before a lot of things. Some FreeBSD 2.1.x installations have this... "feature", along with some other boxes. I would suggest the below change. The whole conf.h needs a major cleanup. (yes, Sameer has suggested two patches but no one went for them... something like this _is_ necessary) Index: conf.h =================================================================== RCS file: /export/home/cvs/apachen/src/main/conf.h,v retrieving revision 1.150 diff -u -r1.150 conf.h --- conf.h 1997/10/25 01:52:45 1.150 +++ conf.h 1997/11/01 01:20:56 @@ -57,11 +57,10 @@ */ +#ifdef WIN32 /* Have to include sys/stat.h before ../os/win32/os.h so we can override -stat() properly */ + * stat() properly */ #include - -#ifdef WIN32 #include "../os/win32/os.h" #else #include "os.h" @@ -720,6 +719,9 @@ #include #include #include +#ifndef WIN32 +#include +#endif #include #if !defined(MPE) && !defined(WIN32) #include