You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by jon * <jo...@clearink.com> on 1999/08/06 22:10:00 UTC

Re: mod_jserv/4828: jserv_mmap.c tries to include sys/mman.h on a NT system

The following reply was made to PR mod_jserv/4828; it has been noted by GNATS.

From: "jon *" <jo...@clearink.com>
To: Ianholsman@iname.com
Cc: apbugs@hyperreal.org
Subject: Re: mod_jserv/4828: jserv_mmap.c tries to include sys/mman.h on a
	 NT system
Date: Fri, 06 Aug 1999 13:06:22 -0700

 >>Fix:
 > Either find a NT method of implementing this feature, or add && 
 !defined(WIN32)
 > to the code so that it doesn't use mem mapping...
 
 does this fix the problem?
 
 -jon
 
   Index: jserv_mmap.c
   ===================================================================
   RCS file: /products/cvs/master/jserv/src/c/jserv_mmap.c,v
   retrieving revision 1.11
   retrieving revision 1.12
   diff -u -r1.11 -r1.12
   --- jserv_mmap.c 1999/07/14 07:39:50 1.11
   +++ jserv_mmap.c 1999/08/06 19:54:58 1.12
   @@ -60,12 +60,12 @@
     *              process found it was not present. (fail-over part)
 *
     * Comments:    MT-unsafe
 *
     * Author:      Jean-Luc Rochat <jl...@jnix.com>
 *
   - * Version:     $Revision: 1.11 $
 *
   + * Version:     $Revision: 1.12 $
 *
 
 ****************************************************************************
 */
 
    #include "jserv.h"
 
   -#ifdef HAVE_MMAP
   +#ifdef HAVE_MMAP && !defined(WIN32)
    /*
 ========================================================================= */
    /* we are on a system with the mmapp POSIX system call.
 */
    /* mmap'ed file is a shared memory read/write by all processes.
 */