From 07202340d82fddc32f1cad82a437a438565cc2ba Mon Sep 17 00:00:00 2001 From: "jim@bo" Date: Wed, 20 Jun 2018 03:08:45 -0400 Subject: port to newer versions of packages: * iproute >= 1.7.4 * conduit-extra >= 1.1.7 --- bittorrent/src/Network/BitTorrent/Exchange/Message.hs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bittorrent/src/Network/BitTorrent/Exchange') diff --git a/bittorrent/src/Network/BitTorrent/Exchange/Message.hs b/bittorrent/src/Network/BitTorrent/Exchange/Message.hs index 2c6770f7..5c096523 100644 --- a/bittorrent/src/Network/BitTorrent/Exchange/Message.hs +++ b/bittorrent/src/Network/BitTorrent/Exchange/Message.hs @@ -32,6 +32,7 @@ {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE TemplateHaskell #-} +{-# LANGUAGE CPP #-} {-# OPTIONS -fno-warn-orphans #-} module Network.BitTorrent.Exchange.Message ( -- * Capabilities @@ -111,7 +112,11 @@ import Data.String import Data.Text as T import Data.Typeable import Data.Word +#if MIN_VERSION_iproute(1,7,4) +import Data.IP hiding (fromSockAddr) +#else import Data.IP +#endif import Network import Network.Socket hiding (KeepAlive) import Text.PrettyPrint as PP hiding ((<>)) -- cgit v1.2.3