This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sys/mman.h missing MCL_CURRENT ...


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]