Imported sources from subversion.
This commit is contained in:
11
packages/ns/patches/000-ranvar.patch
Normal file
11
packages/ns/patches/000-ranvar.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- ns-2.34/tools/ranvar.cc 2009-06-14 18:35:44.000000000 +0100
|
||||
+++ ns-2.34.rasm/tools/ranvar.cc 2012-09-17 23:48:42.570482838 +0100
|
||||
@@ -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;
|
10
packages/ns/patches/001-missing-cstddef.patch
Normal file
10
packages/ns/patches/001-missing-cstddef.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
--- ns-2.34/mac/mac-802_11Ext.h 2009-06-14 18:35:44.000000000 +0100
|
||||
+++ ns-2.34.rasm/mac/mac-802_11Ext.h 2012-09-17 23:57:33.860998370 +0100
|
||||
@@ -57,6 +57,7 @@
|
||||
|
||||
#ifndef ns_mac_80211Ext_h
|
||||
#define ns_mac_80211Ext_h
|
||||
+#include <cstddef>
|
||||
#include "marshall.h"
|
||||
#include "timer-handler.h"
|
||||
#define GET_ETHER_TYPE(x) GET2BYTE((x))
|
14
packages/ns/patches/002-nakagami-constructor.patch
Normal file
14
packages/ns/patches/002-nakagami-constructor.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
--- ns-2.34/mobile/nakagami.cc 2009-06-14 18:35:45.000000000 +0100
|
||||
+++ ns-2.34.rasm/mobile/nakagami.cc 2012-09-17 23:58:47.205778273 +0100
|
||||
@@ -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;
|
||||
}
|
Reference in New Issue
Block a user