Fix the build on Windows
authorDavid Lichteblau <david@lichteblau.com>
Fri, 30 Sep 2011 08:09:08 +0000 (10:09 +0200)
committerDavid Lichteblau <david@lichteblau.com>
Fri, 30 Sep 2011 08:09:08 +0000 (10:09 +0200)
src/code/run-program.lisp
src/runtime/coreparse.c
src/runtime/save.c

index 512a7a9..daebefe 100644 (file)
@@ -899,6 +899,7 @@ Users Manual for details about the PROCESS structure."#-win32"
                     (t
                      (incf read-end count)
                      (funcall copy-fun))))))))
+    #-win32
     (push handler *handlers-installed*)))
 
 ;;; FIXME: something very like this is done in SB-POSIX to treat
index 3109b0b..60359d1 100644 (file)
@@ -23,6 +23,8 @@
 #include <fcntl.h>
 #include <unistd.h>
 
+#include "sbcl.h"
+
 #ifndef LISP_FEATURE_WIN32
 #ifdef LISP_FEATURE_LINUX
 /* For madvise */
@@ -31,7 +33,6 @@
 #include <sys/mman.h>
 #endif
 
-#include "sbcl.h"
 #include "os.h"
 #include "runtime.h"
 #include "globals.h"
index 2ab2101..9fd7d8e 100644 (file)
@@ -149,6 +149,7 @@ write_and_compress_bytes(FILE *file, char *addr, long bytes, os_vm_offset_t file
     bytes = (bytes+os_vm_page_size-1)&~(os_vm_page_size-1);
 
 #ifdef LISP_FEATURE_WIN32
+    long count;
     /* touch every single page in the space to force it to be mapped. */
     for (count = 0; count < bytes; count += 0x1000) {
         volatile int temp = addr[count];