on master help sign in
Expose IOVec for windows case as well
commit82e681e7693f9556f6b61ac8954d97b633c28c8c authorHarendra Kumar <harendra.kumar@gmail.com> dateSun 16 Jun 2019, 20:14 (7 years ago) parentcce586a
1 file changed+4−4
src/Streamly/FileSystem/IOVec.hsc+4−4
src/Streamly/FileSystem/IOVec.hsc+4−4
@@ -32,15 +32,15 @@ import System.Posix.Types (CSsize(..))
3232-- IOVec
3333-------------------------------------------------------------------------------
3434
35−#if !defined(mingw32_HOST_OS)
36−
37−#include <sys/uio.h>
38−
3935data IOVec = IOVec
4036 { iovBase :: {-# UNPACK #-} !(Ptr Word8)
4137 , iovLen :: {-# UNPACK #-} !Word64
4238 } deriving (Eq, Show)
4339
40+#if !defined(mingw32_HOST_OS)
41+
42+#include <sys/uio.h>
43+
4444#if __GLASGOW_HASKELL__ < 800
4545#let alignment t = "%lu", (unsigned long)offsetof(struct {char x__; t (y__); }, y__)
4646#endif