X-Spam-Check-By: sourceware.org
Date: Wed, 1 Aug 2007 23:34:43 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: sys/mman.h missing MCL_CURRENT ...
Message-ID: <20070801213443.GQ13674@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <570946.1241.qm@web50603.mail.re2.yahoo.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <570946.1241.qm@web50603.mail.re2.yahoo.com>
User-Agent: Mutt/1.4.2.2i
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Aug  1 14:13, Fred Hansen wrote:
> A program I am trying to port to cygwin does
>     #include <sys/mman.h>
> and later calls mlockall, which is defined in mman.h:
>     mlockall(MCL_CURRENT | MCL_FUTURE);
> 
> HOWEVER, MCL_CURRENT and MCL_FUTURE are undefined. So the build fails.
> 
> In other systems MCL_... are defined in <bits/mman.h>, but my
> cygwin (cygcheck output attached) lacks /usr/include/bits and even if it
> did, <sys/mman.h> does not include <bits/mman.h>
> 
> Is there some package I am supposed to have added to cygwin to get
> definitions for MCL_CURRENT, etc? I have almost all the packages.

mlockall/munlockall are not supported by Cygwin so there's no reason
to define these values.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

