ports/net/ns3/files/patch-src_test_ns3tc_fq-codel-queue-disc-test-suite.cc
Piotr Kubaj adf9acbc8f 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
2021-01-04 16:08:46 +00:00

18 lines
602 B
C++

--- 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;