From 730db5b897e29143c63076a44a17f57127f4c3b4 Mon Sep 17 00:00:00 2001 From: Sergey Kaplun Date: Fri, 25 Oct 2024 10:56:04 +0300 Subject: [PATCH] test: fix build for macOS Sequoia 15.0 When building on macOS Sequoia 15.0, I've got the following error from including : | error: unknown type name 'caddr_t' | int ptrace(int _request, pid_t _pid, caddr_t _addr, int _data); It can be fixed by including , but since this test is skipped for macOS anyway, I prefer just to move all necessary includes under the corresponding define. Reviewed-by: Maxim Kokryashkin Reviewed-by: Sergey Bronnikov Signed-off-by: Sergey Kaplun (cherry picked from commit 84c968d45f3b4ef1634e91bf0a24101258c63ef8) --- .../gh-8594-sysprof-ffunc-crash.test.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/tarantool-c-tests/gh-8594-sysprof-ffunc-crash.test.c b/test/tarantool-c-tests/gh-8594-sysprof-ffunc-crash.test.c index a83a092142..9f95c088a0 100644 --- a/test/tarantool-c-tests/gh-8594-sysprof-ffunc-crash.test.c +++ b/test/tarantool-c-tests/gh-8594-sysprof-ffunc-crash.test.c @@ -5,12 +5,6 @@ #include "test.h" #include "utils.h" -#include -#include -#include -#include -#include - /* XXX: Still need normal assert inside and helpers. */ #undef NDEBUG #include @@ -24,6 +18,12 @@ #if LUAJIT_OS == LUAJIT_OS_LINUX && LUAJIT_TARGET == LUAJIT_ARCH_X64 +#include +#include +#include +#include +#include + /* * XXX: The test makes sysprof collect the particular event * (FFUNC) at the particular instruction () to