diff --git a/CHANGELOG b/CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,8 @@
+Darcs 2.12.3, 10 September 2016
+
+ * fix compile error under Windows (Guillaume Hoffmann)
+
+
 Darcs 2.12.2, 7 September 2016
 
  * fix missing testsuite file in tarball (Guillaume Hoffmann)
diff --git a/darcs.cabal b/darcs.cabal
--- a/darcs.cabal
+++ b/darcs.cabal
@@ -1,5 +1,5 @@
 Name:           darcs
-version:        2.12.2
+version:        2.12.3
 License:        GPL
 License-file:   COPYING
 Author:         David Roundy <droundy@darcs.net>, <darcs-devel@darcs.net>
diff --git a/release/distributed-context b/release/distributed-context
--- a/release/distributed-context
+++ b/release/distributed-context
@@ -1,1 +1,1 @@
-Just "\nContext:\n\n[TAG 2.12.2\nGuillaume Hoffmann <guillaumh@gmail.com>**20160907155850\n Ignore-this: 663fb3cac9f0bba134bf7435ffc1c7b6\n] \n"
+Just "\nContext:\n\n[TAG 2.12.3\nGuillaume Hoffmann <guillaumh@gmail.com>**20160910231426\n Ignore-this: 726c625cf280fcad9c72b1fc8471f961\n] \n"
diff --git a/src/Darcs/Util/ByteString.hs b/src/Darcs/Util/ByteString.hs
--- a/src/Darcs/Util/ByteString.hs
+++ b/src/Darcs/Util/ByteString.hs
@@ -71,10 +71,7 @@
 import Data.ByteString (intercalate)
 import Data.ByteString.Internal (fromForeignPtr)
 
-#if mingw32_HOST_OS
-#else
 import Control.Exception ( catch, SomeException )
-#endif
 import System.IO ( withFile, IOMode(ReadMode)
                  , hSeek, SeekMode(SeekFromEnd,AbsoluteSeek)
                  , openBinaryFile, hClose, Handle, hGetChar
