[commit: packages/directory] master: Use fILE_ATTRIBUTE_REPARSE_POINT from Win32 when available (e6b3ac7)
git at git.haskell.org
git at git.haskell.org
Mon Apr 17 21:35:51 UTC 2017
- Previous message: [commit: packages/containers] changelog-foldtree, cleaned_bugfix394, develop-0.6, develop-0.6-questionable, master, merge-doc-target, merge-fixes-5.9, merge-restrict-fix-5.8, revert-184-generic, revert-408-bugfix_394: Rename strictness tests to match other test names. (7e42d81)
- Next message: [commit: packages/containers] changelog-foldtree, cleaned_bugfix394, develop-0.6, develop-0.6-questionable, master, merge-doc-target, merge-fixes-5.9, merge-restrict-fix-5.8, revert-184-generic, revert-408-bugfix_394: Use pre-evaluated sequences in benchmarks. (999851e)
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Repository : ssh://git@git.haskell.org/directory
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/e6b3ac7f73d6e20a98e61623994f1fb782897621/directory
>---------------------------------------------------------------
commit e6b3ac7f73d6e20a98e61623994f1fb782897621
Author: Phil Ruffwind <rf at rufflewind.com>
Date: Mon Mar 6 22:51:55 2017 -0500
Use fILE_ATTRIBUTE_REPARSE_POINT from Win32 when available
Could also use createSymbolicLink from Win32, but then it would be hard
figure out what the error code was :/
>---------------------------------------------------------------
e6b3ac7f73d6e20a98e61623994f1fb782897621
System/Directory/Internal/Windows.hsc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/System/Directory/Internal/Windows.hsc b/System/Directory/Internal/Windows.hsc
index 338db8b..b3da63e 100644
--- a/System/Directory/Internal/Windows.hsc
+++ b/System/Directory/Internal/Windows.hsc
@@ -39,7 +39,11 @@ win32_eRROR_INVALID_FUNCTION :: Win32.ErrCode
win32_eRROR_INVALID_FUNCTION = 0x1
win32_fILE_ATTRIBUTE_REPARSE_POINT :: Win32.FileAttributeOrFlag
+#if MIN_VERSION_Win32(2, 4, 0)
+win32_fILE_ATTRIBUTE_REPARSE_POINT = Win32.fILE_ATTRIBUTE_REPARSE_POINT
+#else
win32_fILE_ATTRIBUTE_REPARSE_POINT = (#const FILE_ATTRIBUTE_REPARSE_POINT)
+#endif
win32_fILE_SHARE_DELETE :: Win32.ShareMode
#if MIN_VERSION_Win32(2, 3, 1)
- Previous message: [commit: packages/containers] changelog-foldtree, cleaned_bugfix394, develop-0.6, develop-0.6-questionable, master, merge-doc-target, merge-fixes-5.9, merge-restrict-fix-5.8, revert-184-generic, revert-408-bugfix_394: Rename strictness tests to match other test names. (7e42d81)
- Next message: [commit: packages/containers] changelog-foldtree, cleaned_bugfix394, develop-0.6, develop-0.6-questionable, master, merge-doc-target, merge-fixes-5.9, merge-restrict-fix-5.8, revert-184-generic, revert-408-bugfix_394: Use pre-evaluated sequences in benchmarks. (999851e)
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the ghc-commits
mailing list