You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2011/06/28 05:52:12 UTC

[lucy-commits] svn commit: r1140420 - /incubator/lucy/trunk/core/Lucy/Store/FSFileHandle.c

Author: marvin
Date: Tue Jun 28 03:52:12 2011
New Revision: 1140420

URL: http://svn.apache.org/viewvc?rev=1140420&view=rev
Log:
LUCY-168 Prefer sys/mman.h to windows.h.

Most of the memory mapping code in FSFileHandle.c was already using sys/mman.h
under Cygwin, but there was one preprocessor directive that had to be tweaked.

Modified:
    incubator/lucy/trunk/core/Lucy/Store/FSFileHandle.c

Modified: incubator/lucy/trunk/core/Lucy/Store/FSFileHandle.c
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/core/Lucy/Store/FSFileHandle.c?rev=1140420&r1=1140419&r2=1140420&view=diff
==============================================================================
--- incubator/lucy/trunk/core/Lucy/Store/FSFileHandle.c (original)
+++ incubator/lucy/trunk/core/Lucy/Store/FSFileHandle.c Tue Jun 28 03:52:12 2011
@@ -175,7 +175,7 @@ FSFH_close(FSFileHandle *self) {
         }
         self->fd  = 0;
     }
-    #ifdef CHY_HAS_WINDOWS_H
+    #if (defined(CHY_HAS_WINDOWS_H) && !defined(CHY_HAS_SYS_MMAN_H))
     if (self->win_fhandle) {
         if (!SI_close_win_handles(self)) { return false; }
     }