From f3ecddbaa29d55fa1956526a0155fb34c264fe6b Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 10 Dec 2024 08:42:54 -0500 Subject: [PATCH] cmAffinity: Fix compilation in native Android builds Fixes: #26516 --- Source/cmAffinity.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmAffinity.cxx b/Source/cmAffinity.cxx index 591199b684..965ab3120a 100644 --- a/Source/cmAffinity.cxx +++ b/Source/cmAffinity.cxx @@ -8,7 +8,7 @@ # ifdef _WIN32 # define CM_HAVE_CPU_AFFINITY # include -# elif defined(__linux__) || defined(__FreeBSD__) +# elif (defined(__linux__) && !defined(__ANDROID__)) || defined(__FreeBSD__) # define CM_HAVE_CPU_AFFINITY # include # include