From: Augustin Degomme Date: Mon, 25 Jan 2021 13:45:22 +0000 (+0100) Subject: this constructor was removed in ns3 3.33 - apparently still needed for earlier releases X-Git-Tag: v3.27~532 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/28523ab1e1a544f8383afa0994e80943e2168599?hp=7ca53b5ebe9b96f24832b6890a34e13599b254c2 this constructor was removed in ns3 3.33 - apparently still needed for earlier releases --- 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;