sys/mman.h missing MCL_CURRENT ...

Corinna Vinschen corinna-cygwin@cygwin.com
Wed Aug 1 21:34:00 GMT 2007


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/



More information about the Cygwin mailing list