[ 
https://issues.apache.org/jira/browse/LUCY-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13056287#comment-13056287
 ] 

Marvin Humphrey commented on LUCY-161:
--------------------------------------

Not quite.  It turns out to be much easier to use unistd.h under Cygwin
than CreateHardLink(), since CreateHardLink() needs backslash-separated dirs
and a different drive root.  Therefore, we should prefer CreateHardLink
everywhere except for Cygwin under Windows.  Committed to trunk as r1140432.

> Always use CreateHardLink() on Windows.
> ---------------------------------------
>
>                 Key: LUCY-161
>                 URL: https://issues.apache.org/jira/browse/LUCY-161
>             Project: Lucy
>          Issue Type: Bug
>          Components: Store
>    Affects Versions: 0.1.0 (incubating)
>            Reporter: Marvin Humphrey
>            Priority: Minor
>             Fix For: 0.1.1 (incubating)
>
>
> FSFolder's Hard_Link() method has been set to prefer link() from
> unistd.h, but this causes problems under Strawberry Perl where GCC 
> provides unistd.h without link().  The solution is to always prefer
> CreateHardLink() when windows.h is available.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to