build(test): unknown 'ipc_info_object_type_t' type on macOS #36523

Problem:
On macOS Tahoe, `make unittest` started failing with the following error.

````
test/unit/testutil.lua:784: test/unit/testutil.lua:768: (string) '
test/unit/testutil.lua:295: declaration specifier expected near 'ipc_info_object_type_t' at line 2297'
exit code: 256

stack traceback: 
test/unit/testutil.lua:784: in function 'itp_parent' 
test/unit/testutil.lua:822: in function <test/unit/testutil.lua:812>
````

Solution:
Update filter_complex_blocks.
This commit is contained in:
Koichi Shiraishi
2025-11-19 08:30:20 +09:00
committed by GitHub
parent d00f680c0d
commit 93526754a9
2 changed files with 3 additions and 1 deletions

View File

@@ -163,6 +163,8 @@ local function filter_complex_blocks(body)
-- used by macOS headers
or string.find(line, 'typedef enum : ')
or string.find(line, 'mach_vm_range_recipe')
or string.find(line, 'ipc_info_object_type_t')
or string.find(line, '__Reply__mach_port_kobject_t')
)
then
-- Remove GCC's extension keyword which is just used to disable warnings.