Question about mmap issues on FreeBSD/NetBSD

Yorick Hardy yh at
Sun Aug 1 06:10:10 CDT 2004

Try the patch below, I am not yet sure why this would be necessary.
Perhaps it helps.

>I've got some cross platform issues i cannot resolve. There are some 
>obvious issues like the assumption that round() is in the math library 
>and not linking in the math library itself. i've worked passed those. 
>Currently, I'm working with a patched version of the latest cvs source 
>on Solaris 9x86. After applying Robert Lunnon's patch kit to the latest 
>cvs course and substituting rint for the round function in 
>wine/dlls/dsound/mixer.c and add the math library to EXTRALIBS, I got a 
>clean compile. however running the wine binary results in the following:
>try_mmap_fixed: vfork: Resource temporarily unavailable
>I'm not intimately familiar with how wine manages it's memory so I 
>hesitate to guess what is going on. I've attached the output of the 
>truss if anyone has any ideas on what it going on or how to fix it 
>please let me know.

Kind regards,

Yorick Hardy

--- libs/wine/mmap.c.orig	Thu Jul 29 20:03:03 2004
+++ libs/wine/mmap.c	Sun Aug  1 13:07:07 2004
@@ -135,6 +135,8 @@
        has exited.  Furthermore, Wine sets SIGCHLD to SIG_IGN,
        so we don't need to wait for the child. */
+    waitpid(pid, &pagesize, 0);
     return result == addr;
 #endif  /* (__svr4__ || __NetBSD__) && !MAP_TRYFIXED */

More information about the wine-devel mailing list