on master help sign in
Add alignment definition for GHC-7.10.3
commitfae4b720a0cffcb406246b38a9e691785fd8d3dc authorHarendra Kumar <harendra.kumar@gmail.com> dateSun 16 Jun 2019, 16:45 (7 years ago) parentb846fd6
1 file changed+4
src/Streamly/FileSystem/IOVec.hsc+4
src/Streamly/FileSystem/IOVec.hsc+4
@@ -41,6 +41,10 @@ data IOVec = IOVec
4141 , iovLen :: {-# UNPACK #-} !Word64
4242 } deriving (Eq, Show)
4343
44+#if __GLASGOW_HASKELL__ < 800
45+#let alignment t = "%lu", (unsigned long)offsetof(struct {char x__; t (y__); }, y__)
46+#endif
47+
4448instance Storable IOVec where
4549 sizeOf _ = #{size struct iovec}
4650 alignment _ = #{alignment struct iovec}