summaryrefslogtreecommitdiff
path: root/net/ns3/files/patch-src_test_ns3tc_fq-codel-queue-disc-test-suite.cc
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2021-01-04 16:08:46 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2021-01-04 16:08:46 +0000
commitadf9acbc8f0076aafb9038bd743f1bc63a8bdff9 (patch)
treef489c87effbbca937ef0021c2cb2d6ffaa1fd68c /net/ns3/files/patch-src_test_ns3tc_fq-codel-queue-disc-test-suite.cc
parentFix build with -fno-common (diff)
net/ns3: fix build on GCC architectures
../src/test/ns3tc/fq-codel-queue-disc-test-suite.cc:555:125: error: 'u_int32_t' has not been declared 555 | FqCoDelQueueDiscECNMarking::AddPacket (Ptr<FqCoDelQueueDisc> queue, Ipv4Header hdr, u_int32_t nPkt, u_int32_t nPktEnqueued, u_int32_t nQueueFlows) MFH: 2020Q1
Diffstat (limited to 'net/ns3/files/patch-src_test_ns3tc_fq-codel-queue-disc-test-suite.cc')
-rw-r--r--net/ns3/files/patch-src_test_ns3tc_fq-codel-queue-disc-test-suite.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/ns3/files/patch-src_test_ns3tc_fq-codel-queue-disc-test-suite.cc b/net/ns3/files/patch-src_test_ns3tc_fq-codel-queue-disc-test-suite.cc
new file mode 100644
index 000000000000..9c6d8cccd8e4
--- /dev/null
+++ b/net/ns3/files/patch-src_test_ns3tc_fq-codel-queue-disc-test-suite.cc
@@ -0,0 +1,18 @@
+--- src/test/ns3tc/fq-codel-queue-disc-test-suite.cc.orig 2021-01-04 15:32:24 UTC
++++ src/test/ns3tc/fq-codel-queue-disc-test-suite.cc
+@@ -35,6 +35,8 @@
+ #include "ns3/string.h"
+ #include "ns3/pointer.h"
+
++#include <sys/types.h>
++
+ using namespace ns3;
+
+ // Variable to assign hash to a new packet's flow
+@@ -1125,4 +1127,4 @@ FqCoDelQueueDiscTestSuite::FqCoDelQueueDiscTestSuite (
+ AddTestCase (new FqCoDelQueueDiscL4sMode, TestCase::QUICK);
+ }
+
+-static FqCoDelQueueDiscTestSuite fqCoDelQueueDiscTestSuite;
+\ No newline at end of file
++static FqCoDelQueueDiscTestSuite fqCoDelQueueDiscTestSuite;