diff options
| author | Mikhail Romanko <me@blankhex.com> | 2025-03-03 12:03:26 +0300 |
|---|---|---|
| committer | Mikhail Romanko <me@blankhex.com> | 2025-03-03 17:43:13 +0300 |
| commit | 83a4e723bfc4c8d496ee138b719de1f321666f46 (patch) | |
| tree | 4f6bac8902aab06c029b761287d77a59f288290a | |
| parent | fe2f39d489a1b5fd9130ce7306f94ae7eacc2ce1 (diff) | |
| download | bhlib-83a4e723bfc4c8d496ee138b719de1f321666f46.tar.gz | |
Fix build error on Linux/POSIX
| -rw-r--r-- | CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/Platform/Posix/Thread.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ba98e42..bc58de1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -180,7 +180,7 @@ elseif(UNIX) message(STATUS "Platform: Unix (Linux/BSD/MacOS X)") # Add platform dependent files - list(APPEND BH_SOURCE BH_SOURCE_POSIX) + list(APPEND BH_SOURCE ${BH_SOURCE_POSIX}) # Add platform dependent multithreading support if(ENABLE_MT) diff --git a/src/Platform/Posix/Thread.c b/src/Platform/Posix/Thread.c index 62635f0..21a0b14 100644 --- a/src/Platform/Posix/Thread.c +++ b/src/Platform/Posix/Thread.c @@ -14,7 +14,7 @@ struct BH_ThreadContext static void *BH_ThreadRun(void *context) { BH_ThreadCallback callback; - void *data, *result; + void *data; callback = ((struct BH_ThreadContext *)context)->callback; data = ((struct BH_ThreadContext *)context)->data; |
