@@ -1,3 +1,5 @@
1+#include "MachDeps.h"
2+
13-- |
24-- Module : Streamly.Internal.FileSystem.IOVec
35-- Copyright : (c) 2019 Composewell Technologies
@@ -17,8 +19,9 @@ module Streamly.Internal.FileSystem.IOVec
1719 )
1820where
1921
22+
2023import Data.Word (Word8)
21−#if defined(i386_HOST_ARCH)
24+#if (WORD_SIZE_IN_BITS == 32)
2225import Data.Word (Word32)
2326#else
2427import Data.Word (Word64)
@@ -36,7 +39,7 @@ import Foreign.Storable (Storable(..))
3639
3740data IOVec = IOVec
3841 { iovBase :: {-# UNPACK #-} !(Ptr Word8)
39−#if defined(i386_HOST_ARCH)
42+#if (WORD_SIZE_IN_BITS == 32)
4043 , iovLen :: {-# UNPACK #-} !Word32
4144#else
4245 , iovLen :: {-# UNPACK #-} !Word64