Skip to content

Commit d1f4ee6

Browse files
committed
removing obsoleted #if.
1 parent 7040ac3 commit d1f4ee6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/Network/SocketSpec.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,13 @@ spec = do
6767
getAddrInfo (Just hints) (Just "127.128.129.130") Nothing
6868
hostAddressToTuple hostAddr `shouldBe` (0x7f, 0x80, 0x81, 0x82)
6969

70-
#if defined(IPV6_SOCKET_SUPPORT)
7170
it "works for IPv6 address" $ do
7271
let hints = defaultHints { addrFlags = [AI_NUMERICHOST, AI_ADDRCONFIG] }
7372
host = "2001:0db8:85a3:0000:0000:8a2e:0370:7334"
7473
AddrInfo{addrAddress = (SockAddrInet6 _ _ hostAddr _)}:_ <-
7574
getAddrInfo (Just hints) (Just host) Nothing
7675
hostAddress6ToTuple hostAddr
7776
`shouldBe` (0x2001, 0x0db8, 0x85a3, 0x0000, 0x0000, 0x8a2e, 0x0370, 0x7334)
78-
#endif
7977

8078
it "does not cause segfault on macOS 10.8.2 due to AI_NUMERICSERV" $ do
8179
let hints = defaultHints { addrFlags = [AI_NUMERICSERV] }

0 commit comments

Comments
 (0)