[rtems commit] cpukit: Correct bug in check of affinity support in newlib.
Jennifer Averett
jennifer at rtems.org
Mon Feb 17 18:08:53 UTC 2014
Module: rtems
Branch: master
Commit: 57997d8b45838355cfcffc9de26065057df0e109
Changeset: http://git.rtems.org/rtems/commit/?id=57997d8b45838355cfcffc9de26065057df0e109
Author: Jennifer Averett <jennifer.averett at oarcorp.com>
Date: Mon Feb 17 12:15:19 2014 -0600
cpukit: Correct bug in check of affinity support in newlib.
---
cpukit/configure.ac | 28 ++++++++++++++++++++++------
1 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/cpukit/configure.ac b/cpukit/configure.ac
index 5dd323e..5986575 100644
--- a/cpukit/configure.ac
+++ b/cpukit/configure.ac
@@ -98,12 +98,22 @@ RTEMS_CHECK_FUNC([pthread_attr_setstack],[#include <pthread.h>])
RTEMS_CHECK_FUNC([pthread_attr_getstack],[#include <pthread.h>])
# These are SMP related and were added to newlib by RTEMS.
-RTEMS_CHECK_FUNC([pthread_attr_setaffinity_np],[#include <pthread.h>])
-RTEMS_CHECK_FUNC([pthread_attr_getaffinity_np],[#include <pthread.h>])
-RTEMS_CHECK_FUNC([pthread_setaffinity_np],[#include <pthread.h>])
-RTEMS_CHECK_FUNC([pthread_getaffinity_np],[#include <pthread.h>])
-RTEMS_CHECK_FUNC([pthread_getattr_np],[#include <pthread.h>])
-AC_CHECK_HEADERS([cpuset.h])
+RTEMS_CHECK_FUNC([pthread_attr_setaffinity_np],[
+ #define _GNU_SOURCE
+ #include <pthread.h>])
+RTEMS_CHECK_FUNC([pthread_attr_getaffinity_np],[
+ #define _GNU_SOURCE
+ #include <pthread.h>])
+RTEMS_CHECK_FUNC([pthread_setaffinity_np],[
+ #define _GNU_SOURCE
+ #include <pthread.h>])
+RTEMS_CHECK_FUNC([pthread_getaffinity_np],[
+ #define _GNU_SOURCE
+ #include <pthread.h>])
+RTEMS_CHECK_FUNC([pthread_getattr_np],[
+ #define _GNU_SOURCE
+ #include <pthread.h>])
+AC_CHECK_HEADERS([sys/cpuset.h])
# Mandated by POSIX, not declared in some versions of newlib.
AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h])
@@ -214,6 +224,12 @@ RTEMS_CPUOPT([__RTEMS_USE_TICKS_FOR_STATISTICS__],
[1],
[disable nanosecond granularity for statistics])
+## Header file differences that need to be known in .h after install
+RTEMS_CPUOPT([__RTEMS_HAVE_SYS_CPUSET_H__],
+ [test x"${ac_cv_header_sys_cpuset_h}" = x"yes"],
+ [1],
+ [indicate if <sys/cpuset.h> is present in toolset])
+
## This improves both the size and coverage analysis.
RTEMS_CPUOPT([__RTEMS_DO_NOT_INLINE_THREAD_ENABLE_DISPATCH__],
[test x"${RTEMS_DO_NOT_INLINE_THREAD_ENABLE_DISPATCH}" = x"1"],
More information about the vc
mailing list