From 28523ab1e1a544f8383afa0994e80943e2168599 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Mon, 25 Jan 2021 14:45:22 +0100 Subject: [PATCH 1/1] this constructor was removed in ns3 3.33 - apparently still needed for earlier releases --- src/surf/network_ns3.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/surf/network_ns3.cpp b/src/surf/network_ns3.cpp index 1e512f3c62..5fee0f2b03 100644 --- a/src/surf/network_ns3.cpp +++ b/src/surf/network_ns3.cpp @@ -53,7 +53,11 @@ static int number_of_networks = 1; /* wifi globals */ static ns3::WifiHelper wifi; -static ns3::YansWifiPhyHelper wifiPhy = ns3::YansWifiPhyHelper::Default(); +#if NS3_MINOR_VERSION < 33 +static ns3::YansWifiPhyHelper wifiPhy = ns3::YansWifiPhyHelper::Default(); +#else +static ns3::YansWifiPhyHelper wifiPhy; +#endif static ns3::YansWifiChannelHelper wifiChannel = ns3::YansWifiChannelHelper::Default(); static ns3::WifiMacHelper wifiMac; static ns3::MobilityHelper mobility; -- 2.20.1