Skip to content

Commit 031df10

Browse files
committed
fixing alignment.
1 parent d040a33 commit 031df10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Network/Socket/Posix/Cmsg.hsc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ instance ControlMessage IPv4PktInfo where
152152

153153
instance Storable IPv4PktInfo where
154154
sizeOf _ = (#size struct in_pktinfo)
155-
alignment = undefined
155+
alignment _ = alignment (undefined :: CInt)
156156
poke p (IPv4PktInfo n ha) = do
157157
(#poke struct in_pktinfo, ipi_ifindex) p (fromIntegral n :: CInt)
158158
(#poke struct in_pktinfo, ipi_spec_dst) p (0 :: CInt)
@@ -175,7 +175,7 @@ instance ControlMessage IPv6PktInfo where
175175

176176
instance Storable IPv6PktInfo where
177177
sizeOf _ = (#size struct in6_pktinfo)
178-
alignment = undefined
178+
alignment _ = alignment (undefined :: CInt)
179179
poke p (IPv6PktInfo n ha6) = do
180180
(#poke struct in6_pktinfo, ipi6_ifindex) p (fromIntegral n :: CInt)
181181
(#poke struct in6_pktinfo, ipi6_addr) p (In6Addr ha6)

0 commit comments

Comments
 (0)