Fix missing include on FreeBSD (#6864)

This commit is contained in:
apocelipes 2025-12-27 23:17:03 +08:00 committed by GitHub
parent 2318adabd3
commit c35dde7c9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -276,6 +276,7 @@ Zhen Yan
Zhou Shen
Zhouyi Shen
Zixi Li
apocelipes
dependabot[bot]
february cozzocrea
sumpster

View File

@ -41,6 +41,9 @@
#if defined(__APPLE__) && !defined(__arm64__) && !defined(__POWERPC__)
# include <cpuid.h> // For __cpuid_count()
#endif
#if defined(__FreeBSD__)
# include <pthread_np.h> // For pthread_getaffinity_np()
#endif
#if defined(__APPLE__) && defined(__MACH__)
# include <mach/mach.h> // For task_info()