1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
From: =?utf-8?q?Timo_R=C3=B6hling?= <timo@gaussglocke.de>
Date: Fri, 25 Dec 2020 15:06:49 +0100
Subject: Include cstdlib for macro definition of EXIT_FAILURE
---
include/fastdds/rtps/common/PortParameters.hpp | 1 +
src/cpp/rtps/network/NetworkFactory.cpp | 1 +
test/unittest/rtps/common/PortParametersTests.cpp | 1 +
3 files changed, 3 insertions(+)
diff --git a/include/fastdds/rtps/common/PortParameters.hpp b/include/fastdds/rtps/common/PortParameters.hpp
index 2a05ca7..858075b 100644
--- a/include/fastdds/rtps/common/PortParameters.hpp
+++ b/include/fastdds/rtps/common/PortParameters.hpp
@@ -21,6 +21,7 @@
#include <fastdds/rtps/common/Types.hpp>
#include <fastdds/dds/log/Log.hpp>
+#include <cstdlib>
namespace eprosima {
namespace fastdds {
diff --git a/src/cpp/rtps/network/NetworkFactory.cpp b/src/cpp/rtps/network/NetworkFactory.cpp
index 57a98d0..9cb1fd3 100644
--- a/src/cpp/rtps/network/NetworkFactory.cpp
+++ b/src/cpp/rtps/network/NetworkFactory.cpp
@@ -14,6 +14,7 @@
#include <rtps/network/NetworkFactory.hpp>
+#include <cstdlib>
#include <limits>
#include <utility>
diff --git a/test/unittest/rtps/common/PortParametersTests.cpp b/test/unittest/rtps/common/PortParametersTests.cpp
index 4b40976..3429f0f 100644
--- a/test/unittest/rtps/common/PortParametersTests.cpp
+++ b/test/unittest/rtps/common/PortParametersTests.cpp
@@ -13,6 +13,7 @@
// limitations under the License.
#include <climits>
+#include <cstdlib>
#include <gtest/gtest.h>
|