mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 04:39:18 +08:00
pthread.c: Conditionalize thread affinity initialization
This commit is contained in:
@@ -371,7 +371,7 @@ User_extensions_Control _POSIX_Threads_User_extensions = {
|
||||
*/
|
||||
void _POSIX_Threads_Manager_initialization(void)
|
||||
{
|
||||
#if defined(__RTEMS_HAVE_SYS_CPUSET_H__)
|
||||
#if defined(RTEMS_SMP) && defined(__RTEMS_HAVE_SYS_CPUSET_H__)
|
||||
const CPU_set_Control *affinity;
|
||||
pthread_attr_t *attr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user