<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 20/10/12 19:35, Greg Grotsky wrote:<br>
</div>
<blockquote
cite="mid:CAKL4i_ov17=Yc-8W-pB62K4Q-AV0cfvNQ+j1HABg63Osy49hUA@mail.gmail.com"
type="cite">
<div class="gmail_quote">On Sat, Oct 20, 2012 at 12:16 PM, Paul
Harrison <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:mythtv@sky.com" target="_blank">mythtv@sky.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>
<div class="h5">
<div>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. </div>
</div>
</div>
<br>
Wonder if we just need to add an include for unistd.h? Try
adding #include <unistd.h> to the top of zmserver.cpp.<br>
</div>
</blockquote>
<div><br>
</div>
<div>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.</div>
</div>
<br>
</blockquote>
<br>
Something like this added somewhere in ZMServer::ZMServer(int sock,
bool debug)<br>
<br>
#ifdef _POSIX_MAPPED_FILES<br>
cout << "_POSIX_MAPPED_FILES is defined and set to "
<< _POSIX_MAPPED_FILES << "\n";<br>
#else<br>
cout << "_POSIX_MAPPED_FILES is NOT defined \n";<br>
<br>
Paul H.<br>
</body>
</html>