diff -ru ns-allinone-2.34-2/ns-2.34/mobile/nakagami.cc ns-allinone-2.34/ns-2.34/mobile/nakagami.cc --- ns-allinone-2.34-Orginal/ns-2.34/mobile/nakagami.cc 2009-06-14 20:35:45.000000000 +0300 +++ ns-allinone-2.34/ns-2.34/mobile/nakagami.cc 2011-10-08 21:01:04.000000000 +0300 @@ -180,9 +180,9 @@ double resultPower; if (int_m == m) { - resultPower = ErlangRandomVariable::ErlangRandomVariable(Pr/m, int_m).value(); + resultPower = ErlangRandomVariable(Pr/m, int_m).value(); } else { - resultPower = GammaRandomVariable::GammaRandomVariable(m, Pr/m).value(); + resultPower = GammaRandomVariable(m, Pr/m).value(); } return resultPower; } diff -ru ns-allinone-2.34-2/ns-2.34/tools/ranvar.cc ns-allinone-2.34/ns-2.34/tools/ranvar.cc --- ns-allinone-2.34-Orginal/ns-2.34/tools/ranvar.cc 2009-06-14 20:35:44.000000000 +0300 +++ ns-allinone-2.34/ns-2.34/tools/ranvar.cc 2011-10-08 21:03:27.000000000 +0300 @@ -216,7 +216,7 @@ // ACM Transactions on mathematical software, Vol. 26, No. 3, Sept. 2000 if (alpha_ < 1) { double u = rng_->uniform(1.0); - return GammaRandomVariable::GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_); + return GammaRandomVariable(1.0 + alpha_, beta_).value() * pow (u, 1.0 / alpha_); } double x, v, u; diff -ru ns-allinone-2.34-2/ns-2.34/mac/mac-802_11Ext.h ns-allinone-2.34/ns-2.34/mac/mac-802_11Ext.h --- ns-allinone-2.34-Orginal/ns-2.34/mac/mac-802_11Ext.h 2009-06-14 20:35:44.000000000 +0300 +++ ns-allinone-2.34/ns-2.34/mac/mac-802_11Ext.h 2011-11-09 22:01:41.413169856 +0300 @@ -54,7 +54,7 @@ * For further information see: * http://dsn.tm.uni-karlsruhe.de/english/Overhaul_NS-2.php */ - +#include #ifndef ns_mac_80211Ext_h #define ns_mac_80211Ext_h #include "marshall.h"