[darcs-devel] Compiling darcs with GHC 6.4 on win32

Peter Strand peter at zarquon.se
Tue Mar 29 02:34:53 PST 2005


David Roundy wrote:

> On Sat, Mar 12, 2005 at 07:54:42PM -0700, Will wrote:
> 
>>It seems that the "unlockFile" function has disappeared in GHC 6.4
>>and so the "handleToFd" workaround no longer compiles.  Is the call
>>to unlockFile necessary?  Any ideas on a new workaround?

 From what I can see, the call is not necessary on windows with ghc-6.4.
(other calls are ifdef:ed out in the library sources)


> We could have the configure script check whether handleToFd is available,
> and if it isn't, we'd just disable mmap.  We could also put in a
> win32-specific check... or could have the #ifdef just check for __WIN32 (or
> whatever), and drop the configure entirely.  That would perhaps be
> cleanest.

I just sent a patch which adds a dummy handleToFd to 
win32/System/Posix.hs, avoiding the need for a configure workaround.
It's not called anyway, and when we fix mmap on windows we can look
into this again. Or avoid the need to call handleToFd altogether by
opening the file by open(2), or something..



/Peter





More information about the darcs-devel mailing list