From 9fb12e142b80ce399285b41e8fad4f862bb6a776 Mon Sep 17 00:00:00 2001
From: Paolo Capriotti
Date: Tue, 8 May 2012 14:05:28 +0100
Subject: Enable FileLock for win32 (#4363)
---
rts/RtsStartup.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
(limited to 'rts/RtsStartup.c')
diff --git a/rts/RtsStartup.c b/rts/RtsStartup.c
index ed13915655..f5c29f4a70 100644
--- a/rts/RtsStartup.c
+++ b/rts/RtsStartup.c
@@ -35,6 +35,7 @@
#include "Profiling.h"
#include "Timer.h"
#include "Globals.h"
+#include "FileLock.h"
void exitLinker( void ); // there is no Linker.h file to include
#if defined(RTS_GTK_FRONTPANEL)
@@ -52,7 +53,6 @@ void exitLinker( void ); // there is no Linker.h file to include
#if !defined(mingw32_HOST_OS)
#include "posix/TTY.h"
-#include "posix/FileLock.h"
#endif
#ifdef HAVE_UNISTD_H
@@ -215,9 +215,7 @@ hs_init_ghc(int *argc, char **argv[], RtsConfig rts_config)
initGlobalStore();
/* initialise file locking, if necessary */
-#if !defined(mingw32_HOST_OS)
initFileLocking();
-#endif
#if defined(DEBUG)
/* initialise thread label table (tso->char*) */
@@ -376,9 +374,7 @@ hs_exit_(rtsBool wait_foreign)
exitLinker();
/* free file locking tables, if necessary */
-#if !defined(mingw32_HOST_OS)
freeFileLocking();
-#endif
/* free the stable pointer table */
exitStablePtrTable();
--
cgit v1.2.1