From 2d501196fadcefba27b2c2dfaae133fd1c0f0419 Mon Sep 17 00:00:00 2001 From: Tanguy Date: Tue, 2 May 2023 17:34:50 +0200 Subject: [PATCH] Compatibility with new chronos version --- libp2p/wire.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libp2p/wire.nim b/libp2p/wire.nim index f375e7b77..989c5a3b3 100644 --- a/libp2p/wire.nim +++ b/libp2p/wire.nim @@ -17,7 +17,8 @@ import chronos, stew/endians2 import multiaddress, multicodec, errors, utility when defined(windows): - import winlean + when not declared(Sockaddr_storage): + import winlean else: import posix