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 <hello@peppergray.xyz>
This commit is contained in:
Pepper Gray committed 2026-05-03 15:49:40 +02:00
1 parent 215658bf29
commit c548262664
1 file changed
+2
+2
View File
@@ -1,6 +1,8 @@
#include <catch2/catch_all.hpp>
#include <FEXCore/Utils/Allocator.h>
#include <unistd.h>
namespace {
using FEXCore::Allocator::MemoryRegion;