From 00f4eae0259107971ada32519229dd4c8089772b Mon Sep 17 00:00:00 2001 From: joseph Date: Thu, 23 Sep 2021 20:58:45 +0900 Subject: [PATCH] Fix test code to can be built on alpine Signed-off-by: joseph --- ChangeLog.d/do-not-use-obsolete-header.txt | 5 +++++ tests/suites/test_suite_net.function | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 ChangeLog.d/do-not-use-obsolete-header.txt diff --git a/ChangeLog.d/do-not-use-obsolete-header.txt b/ChangeLog.d/do-not-use-obsolete-header.txt new file mode 100644 index 000000000..9a57ef16b --- /dev/null +++ b/ChangeLog.d/do-not-use-obsolete-header.txt @@ -0,0 +1,5 @@ +Bugfix + * Don't use the obsolete header path sys/fcntl.h in unit tests. + These header files cause compilation errors in musl. + Fixes #4969. + diff --git a/tests/suites/test_suite_net.function b/tests/suites/test_suite_net.function index f429fc922..513b72364 100644 --- a/tests/suites/test_suite_net.function +++ b/tests/suites/test_suite_net.function @@ -9,11 +9,11 @@ #endif #if defined(MBEDTLS_PLATFORM_IS_UNIXLIKE) -#include #include #include #include #include +#include #include #endif