[commit: ghc] master: Fix compilation for !HAVE_FLOCK (2fa6873)
git at git.haskell.org
git at git.haskell.org
Sun Apr 23 13:42:54 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/2fa6873faf16a0f3b23742222a00f0647554395b/ghc
>---------------------------------------------------------------
commit 2fa6873faf16a0f3b23742222a00f0647554395b
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date: Sun Apr 23 15:41:50 2017 +0200
Fix compilation for !HAVE_FLOCK
>---------------------------------------------------------------
2fa6873faf16a0f3b23742222a00f0647554395b
libraries/base/GHC/IO/Handle/Lock.hsc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libraries/base/GHC/IO/Handle/Lock.hsc b/libraries/base/GHC/IO/Handle/Lock.hsc
index b2c64c4..ec62f86 100644
--- a/libraries/base/GHC/IO/Handle/Lock.hsc
+++ b/libraries/base/GHC/IO/Handle/Lock.hsc
@@ -47,6 +47,10 @@ import GHC.IO.Handle.FD
import GHC.Ptr
import GHC.Windows
+#else
+
+import GHC.IO (throwIO)
+
#endif
import Data.Functor
More information about the ghc-commits
mailing list