+git-annex (10.20240532) UNRELEASED; urgency=medium
+
+ * Fix Windows build with Win32 2.13.4+
+ Thanks, Oleg Tolmatcev
+
+ -- Joey Hess <id@joeyh.name> Mon, 03 Jun 2024 13:03:21 -0400
+
git-annex (10.20240531) upstream; urgency=medium
* git-remote-annex: New program which allows pushing a git repo to a
import Utility.Path.Windows
import Utility.FileSystemEncoding
+#if MIN_VERSION_Win32(2,13,4)
+import Common (tryNonAsync)
+#endif
type LockFile = RawFilePath
openLock sharemode f = do
f' <- convertToWindowsNativeNamespace f
#if MIN_VERSION_Win32(2,13,4)
- r <- tryNonAsync $ createFile_NoRetry f' gENERIC_READ sharemode
- security_attributes oPEN_ALWAYS fILE_ATTRIBUTE_NORMAL
- (maybePtr Nothing)
+ r <- tryNonAsync $ createFile_NoRetry (fromRawFilePath f') gENERIC_READ sharemode
+ Nothing oPEN_ALWAYS fILE_ATTRIBUTE_NORMAL
+ Nothing
return $ case r of
Left _ -> Nothing
Right h -> Just h