pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/ns Make this package compile with gcc-4 by initial...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2851b03df133
branches:  trunk
changeset: 499061:2851b03df133
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Thu Sep 08 17:19:13 2005 +0000

description:
Make this package compile with gcc-4 by initializing const static data
members outside their class.

diffstat:

 net/ns/distinfo         |   4 +++-
 net/ns/patches/patch-ag |  36 ++++++++++++++++++++++++++++++++++++
 net/ns/patches/patch-ar |  18 ++++++++++++++++++
 3 files changed, 57 insertions(+), 1 deletions(-)

diffs (84 lines):

diff -r cc49664fb13f -r 2851b03df133 net/ns/distinfo
--- a/net/ns/distinfo   Thu Sep 08 16:24:15 2005 +0000
+++ b/net/ns/distinfo   Thu Sep 08 17:19:13 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2005/09/08 02:50:58 minskim Exp $
+$NetBSD: distinfo,v 1.8 2005/09/08 17:19:13 minskim Exp $
 
 SHA1 (ns-src-2.28.tar.gz) = ecad96f69bb32420c0a9ee698c7289e66001febf
 RMD160 (ns-src-2.28.tar.gz) = f2ec76b7dc96bbfb75d8485ef2822ebdf50b8ed1
@@ -9,6 +9,7 @@
 SHA1 (patch-ad) = 5f35152de976c2195dcff20abbe8610321dd9969
 SHA1 (patch-ae) = c971d28448ae1b495119e3ec2c8de185468b9be2
 SHA1 (patch-af) = 94ab6d8a0cb9d43f9d440712880fe9a2be24ccd4
+SHA1 (patch-ag) = 7a1c7919a7d8effe16f30399d486a4af9afba4db
 SHA1 (patch-ah) = 51c36d73309d135f89f7d2362835052b304b88bd
 SHA1 (patch-ai) = b75f36f986ca7c833769de09e6e79f6b87c5564a
 SHA1 (patch-aj) = 533fa4f1bd1f8bf83882ed5ed2717511283d5ddc
@@ -18,3 +19,4 @@
 SHA1 (patch-an) = c6dd6b93332a6c6dd169975836df9ef802bfc206
 SHA1 (patch-ao) = 2a1fd71686ff206fe2212605f91b8167b998d6e2
 SHA1 (patch-ap) = f130c112d7dfe114e637e190750d9caad55e4703
+SHA1 (patch-ar) = d726d8362717f0474040f3ec97ee3c2c6d9a817c
diff -r cc49664fb13f -r 2851b03df133 net/ns/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ns/patches/patch-ag   Thu Sep 08 17:19:13 2005 +0000
@@ -0,0 +1,36 @@
+$NetBSD: patch-ag,v 1.3 2005/09/08 17:19:14 minskim Exp $
+
+--- xcp/xcpq.h.orig    2005-02-03 10:29:20.000000000 -0800
++++ xcp/xcpq.h
+@@ -113,11 +113,11 @@ protected:
+       XCPTimer*        rtt_timer_;
+       double           link_capacity_bps_;
+ 
+-      static const double     ALPHA_          = 0.4;
+-      static const double     BETA_           = 0.226;
+-      static const double     GAMMA_          = 0.1;
+-      static const double     XCP_MAX_INTERVAL= 1.0;
+-      static const double     XCP_MIN_INTERVAL= .001;
++      static const double     ALPHA_;
++      static const double     BETA_;
++      static const double     GAMMA_;
++      static const double     XCP_MAX_INTERVAL;
++      static const double     XCP_MIN_INTERVAL;
+ 
+       double          Te_;       // control interval
+       double          Tq_;    
+@@ -141,7 +141,7 @@ protected:
+       double                  b_[BSIZE];
+       double                  t_[BSIZE];
+       int                     maxb_;
+-      static const double     BWIDTH = 0.01;
++      static const double     BWIDTH;
+       int                     min_queue_ci_;
+       int                     max_queue_ci_;
+   
+@@ -158,5 +158,4 @@ protected:
+   
+ };
+ 
+-
+ #endif //NS_XCPQ_H
diff -r cc49664fb13f -r 2851b03df133 net/ns/patches/patch-ar
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ns/patches/patch-ar   Thu Sep 08 17:19:13 2005 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-ar,v 1.1 2005/09/08 17:19:14 minskim Exp $
+
+--- xcp/xcpq.cc.orig   2005-02-03 10:29:20.000000000 -0800
++++ xcp/xcpq.cc
+@@ -24,6 +24,13 @@
+ #include "xcp.h"
+ #include "random.h"
+ 
++const double XCPQueue::ALPHA_ = 0.4;
++const double XCPQueue::BETA_ = 0.226;
++const double XCPQueue::GAMMA_ = 0.1;
++const double XCPQueue::XCP_MAX_INTERVAL = 1.0;
++const double XCPQueue::XCP_MIN_INTERVAL = .001;
++const double XCPQueue::BWIDTH = 0.01;
++
+ static class XCPQClass : public TclClass {
+ public:
+       XCPQClass() : TclClass("Queue/DropTail/XCPQ") {}



Home | Main Index | Thread Index | Old Index