From c548262664669f9268970a5506c8bce85bc0639c Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Sun, 3 May 2026 15:49:40 +0200 Subject: [PATCH] include missing header unistd.h build on clang/musl fails with: ``` FEX/unittests/APITests/Allocator.cpp:17:5: error: use of undeclared identifier 'close' FEX/unittests/APITests/Allocator.cpp:23:5: error: use of undeclared identifier 'lseek'; did you mean 'fseek'? FEX/unittests/APITests/Allocator.cpp:23:11: error: cannot initialize a parameter of type 'FILE *' (aka 'struct _IO_FILE *') with an lvalue of type 'int' FEX/unittests/APITests/Allocator.cpp:24:5: error: use of undeclared identifier 'write'; did you mean '_IO_cookie_io_functions_t::write'? FEX/unittests/APITests/Allocator.cpp:24:5: error: invalid use of non-static data member 'write' ``` include header to provide defintions fix: #5476 Signed-off-by: Pepper Gray --- unittests/APITests/Allocator.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unittests/APITests/Allocator.cpp b/unittests/APITests/Allocator.cpp index 9c7119d68..c1aa86d06 100644 --- a/unittests/APITests/Allocator.cpp +++ b/unittests/APITests/Allocator.cpp @@ -1,6 +1,8 @@ #include #include +#include + namespace { using FEXCore::Allocator::MemoryRegion;