From d0350086dee02ea0d80945c37f75e81f9cbc19cb Mon Sep 17 00:00:00 2001 From: "nolan.de.souza" <88709630+nolan-veed@users.noreply.github.com> Date: Thu, 2 Oct 2025 10:16:10 +0100 Subject: [PATCH] Fixed freebsd build. --- SConstruct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 63f829862..698e7b8d1 100644 --- a/SConstruct +++ b/SConstruct @@ -893,7 +893,7 @@ if meta.compiler in ['gcc', 'clang']: '-std=c11', ]) -if 'target_posix' in env['ROC_TARGETS'] and meta.platform not in ['macos']: +if 'target_posix' in env['ROC_TARGETS'] and meta.platform not in ['macos', 'unix']: # macOS is special, otherwise rely on _POSIX_C_SOURCE env.Append(CPPDEFINES=[('_POSIX_C_SOURCE', env['ROC_POSIX_PLATFORM'])]) @@ -959,7 +959,7 @@ if meta.compiler in ['gcc', 'clang']: '-fPIC', ]}) - if meta.platform in ['linux', 'macos']: + if meta.platform in ['linux', 'macos', 'unix']: env.AddManualDependency(libs=['pthread']) if meta.platform in ['linux', 'android'] or meta.gnu_toolchain: