cmAffinity: Fix compilation in native Android builds

Fixes: #26516
This commit is contained in:
Brad King
2024-12-10 08:42:54 -05:00
parent a2c30a4eeb
commit f3ecddbaa2

View File

@@ -8,7 +8,7 @@
# ifdef _WIN32
# define CM_HAVE_CPU_AFFINITY
# include <windows.h>
# elif defined(__linux__) || defined(__FreeBSD__)
# elif (defined(__linux__) && !defined(__ANDROID__)) || defined(__FreeBSD__)
# define CM_HAVE_CPU_AFFINITY
# include <pthread.h>
# include <sched.h>