help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] [PATCH] Fix cygwin build


From: Paolo Bonzini
Subject: [Help-smalltalk] [PATCH] Fix cygwin build
Date: Thu, 14 Jun 2007 09:56:23 +0200
User-agent: Thunderbird 2.0.0.0 (Macintosh/20070326)

Thanks to Alexander Lazarevic' for testing.

Paolo

2007-06-14  Paolo Bonzini  <address@hidden>

        * libgst/sysdep.c: Try VirtualAlloc with NULL address if a fixed
        address fails.


--- orig/libgst/sysdep.c
+++ mod/libgst/sysdep.c
@@ -1806,6 +1806,8 @@ win32_reserve (PTR address, size_t size)
 {
   PTR base;
   base = VirtualAlloc(address, size, MEM_RESERVE, PAGE_NOACCESS);
+  if (!base && address)
+    base = VirtualAlloc(NULL, size, MEM_RESERVE, PAGE_NOACCESS);
   if (!base)
     errno = ENOMEM;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]