List Info

Thread: Fix cygwin build




Fix cygwin build
country flaguser name
Switzerland
2007-06-14 02:56:23
Thanks to Alexander Lazarevic' for testing.

Paolo

2007-06-14  Paolo Bonzini  <bonzinignu.org>

         * 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
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )