[PATCH] Fix cygwin build

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Fix cygwin build

Paolo Bonzini
Thanks to Alexander Lazarevic' for testing.

Paolo

2007-06-14  Paolo Bonzini  <[hidden email]>

         * 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;


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk