mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 09:00:17 +02:00
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:
1 parent
215658bf29
commit
c548262664
1 file changed
+2
@@ -1,6 +1,8 @@
|
||||
#include <catch2/catch_all.hpp>
|
||||
#include <FEXCore/Utils/Allocator.h>
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
namespace {
|
||||
|
||||
using FEXCore::Allocator::MemoryRegion;
|
||||
|
||||
Reference in new issue
Block a user