[mythtv-users] Mythzoneminder and mmap
Paul Harrison
mythtv at sky.com
Sat Oct 20 19:10:38 UTC 2012
On 20/10/12 19:35, Greg Grotsky wrote:
> On Sat, Oct 20, 2012 at 12:16 PM, Paul Harrison <mythtv at sky.com
> <mailto:mythtv at sky.com>> wrote:
>
> OK I think the problem is you are using mmap in ZM and for some
> reason mythzmserver has been compiled without mmap support. The
> mmap support is conditionally compiled based on the value
> _POSIX_MAPPED_FILES which according to the mmap man page should be
> defined in unistd.h on my system it is actually defined in
> /usr/include/bits/posix_opt.h.
>
> Wonder if we just need to add an include for unistd.h? Try adding
> #include <unistd.h> to the top of zmserver.cpp.
>
>
> That's weird, I just updated to git head and tried it with the include
> statement in zmserver.cpp and it didn't appear to help. Should I try
> to print the POSIX value you mentioned, somehow? I'm don't know much
> about cpp so if you could give me the actual code, I can try it out.
>
Something like this added somewhere in ZMServer::ZMServer(int sock, bool
debug)
#ifdef _POSIX_MAPPED_FILES
cout << "_POSIX_MAPPED_FILES is defined and set to " <<
_POSIX_MAPPED_FILES << "\n";
#else
cout << "_POSIX_MAPPED_FILES is NOT defined \n";
Paul H.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20121020/b456398f/attachment.html>
More information about the mythtv-users
mailing list