From 4a26d00d1c4cc3f1e1ea3c8aedcef45458daa6cc Mon Sep 17 00:00:00 2001 From: Ivey Date: Tue, 19 Nov 2024 12:27:38 -0500 Subject: [PATCH] netanim: Use remove instead of unlink --- src/netanim/test/netanim-test.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/netanim/test/netanim-test.cc b/src/netanim/test/netanim-test.cc index 97428e4bb..f568f7d73 100644 --- a/src/netanim/test/netanim-test.cc +++ b/src/netanim/test/netanim-test.cc @@ -6,7 +6,9 @@ * http://wiki.osll.ru/doku.php/start) */ +#ifndef __WIN32__ #include "unistd.h" +#endif #include "ns3/basic-energy-source.h" #include "ns3/core-module.h" @@ -97,7 +99,7 @@ AbstractAnimationInterfaceTestCase::CheckFileExistence() FILE* fp = fopen(m_traceFileName, "r"); NS_TEST_ASSERT_MSG_NE(fp, nullptr, "Trace file was not created"); fclose(fp); - unlink(m_traceFileName); + remove(m_traceFileName); } /**