Fix the single-threaded Windows build
authorDavid Lichteblau <david@lichteblau.com>
Fri, 26 Oct 2012 17:35:17 +0000 (19:35 +0200)
committerDavid Lichteblau <david@lichteblau.com>
Fri, 26 Oct 2012 17:35:19 +0000 (19:35 +0200)
For this release, we purport to support Windows without threads as
an option.  Make it so.

src/runtime/win32-os.c

index f27f5ed..5aa33f7 100644 (file)
@@ -54,6 +54,7 @@
 #include <float.h>
 
 #include <excpt.h>
+#include <errno.h>
 
 #include "validate.h"
 #include "thread.h"
@@ -1304,6 +1305,7 @@ void scratch(void)
     UnmapViewOfFile(0);
     FlushViewOfFile(0,0);
     SetFilePointerEx(0, la, 0, 0);
+    DuplicateHandle(0, 0, 0, 0, 0, 0, 0);
     #ifndef LISP_FEATURE_SB_UNICODE
       CreateDirectoryA(0,0);
       CreateFileMappingA(0,0,0,0,0,0);