fix compile breakage on Windows
authorSimon Marlow <marlowsd@gmail.com>
Mon, 17 Nov 2008 14:28:31 +0000 (14:28 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 17 Nov 2008 14:28:31 +0000 (14:28 +0000)
rts/Linker.c

index 357023d..1fbe602 100644 (file)
@@ -1292,6 +1292,7 @@ void ghci_enquire ( char* addr )
 static unsigned int PLTSize(void);
 #endif
 
 static unsigned int PLTSize(void);
 #endif
 
+#ifdef USE_MMAP
 static void *
 mmapForLinker (size_t bytes, nat flags, int fd)
 {
 static void *
 mmapForLinker (size_t bytes, nat flags, int fd)
 {
@@ -1346,6 +1347,7 @@ mmap_again:
 
    return result;
 }
 
    return result;
 }
+#endif // USE_MMAP
 
 /* -----------------------------------------------------------------------------
  * Load an obj (populate the global symbol table, but don't resolve yet)
 
 /* -----------------------------------------------------------------------------
  * Load an obj (populate the global symbol table, but don't resolve yet)