Skip to content

Commit 4f7987f

Browse files
committed
test: fix build for macOS Sequoia 15.0
When building <tarantool-c-tests/gh-8594-sysprof-ffunc-crash.test.c> on macOS Sequoia 15.0, I've got the following error from including <sys/ptrace.h>: | error: unknown type name 'caddr_t' | int ptrace(int _request, pid_t _pid, caddr_t _addr, int _data); It can be fixed by including <sys/types.h>, but since this test is skipped for macOS anyway, I prefer just to move all necessary includes under the corresponding define.
1 parent 5daf61c commit 4f7987f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/tarantool-c-tests/gh-8594-sysprof-ffunc-crash.test.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
#include "test.h"
66
#include "utils.h"
77

8-
#include <signal.h>
9-
#include <sys/ptrace.h>
10-
#include <sys/user.h>
11-
#include <sys/wait.h>
12-
#include <unistd.h>
13-
148
/* XXX: Still need normal assert inside <tracee> and helpers. */
159
#undef NDEBUG
1610
#include <assert.h>
@@ -24,6 +18,12 @@
2418

2519
#if LUAJIT_OS == LUAJIT_OS_LINUX && LUAJIT_TARGET == LUAJIT_ARCH_X64
2620

21+
#include <signal.h>
22+
#include <sys/ptrace.h>
23+
#include <sys/user.h>
24+
#include <sys/wait.h>
25+
#include <unistd.h>
26+
2727
/*
2828
* XXX: The test makes sysprof collect the particular event
2929
* (FFUNC) at the particular instruction (<lj_fff_res1>) to

0 commit comments

Comments
 (0)