diff --git a/include/pthread.h b/include/pthread.h index 999af40f1f..e996975c4a 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -586,6 +586,9 @@ int pthread_setaffinity_np(pthread_t thread, size_t cpusetsize, FAR const cpu_set_t *cpuset); int pthread_getaffinity_np(pthread_t thread, size_t cpusetsize, FAR cpu_set_t *cpuset); +#else +#define pthread_setaffinity_np(...) (-ENOSYS) +#define pthread_getaffinity_np(...) (-ENOSYS) #endif /* Thread-specific Data Interfaces */