[rtems commit] psxtests: Correct bug in check of affinity support in newlib .
Jennifer Averett
jennifer at rtems.org
Mon Feb 17 18:10:25 UTC 2014
Module: rtems
Branch: master
Commit: f38060b6ddbd06eeaf3f2bdb98b37a4636cb1ef7
Changeset: http://git.rtems.org/rtems/commit/?id=f38060b6ddbd06eeaf3f2bdb98b37a4636cb1ef7
Author: Jennifer Averett <jennifer.averett at oarcorp.com>
Date: Mon Feb 17 12:17:26 2014 -0600
psxtests: Correct bug in check of affinity support in newlib.
---
testsuites/psxtests/configure.ac | 22 ++++++++++++++++------
1 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/testsuites/psxtests/configure.ac b/testsuites/psxtests/configure.ac
index 16676a4..3320b1c 100644
--- a/testsuites/psxtests/configure.ac
+++ b/testsuites/psxtests/configure.ac
@@ -49,19 +49,29 @@ AC_CHECK_DECLS([pthread_attr_getguardsize],[],[],[[#include <pthread.h>]])
AC_CHECK_DECLS([pthread_attr_setguardsize],[],[],[[#include <pthread.h>]])
# Added to newlib pthreads for RTEMS SMP (np), may not be present
-AC_CHECK_DECLS([pthread_attr_setaffinity_np],[].[],,[[#include <pthread.h>]])
+AC_CHECK_DECLS([pthread_attr_setaffinity_np],[],[],[[
+ #define _GNU_SOURCE
+ #include <pthread.h>]])
# Added to newlib pthreads for RTEMS SMP (np), may not be present
-AC_CHECK_DECLS([pthread_attr_getaffinity_np],[].[],,[[#include <pthread.h>]])
+AC_CHECK_DECLS([pthread_attr_getaffinity_np],[],[],[[
+ #define _GNU_SOURCE
+ #include <pthread.h>]])
# Added to newlib pthreads for RTEMS SMP (np), may not be present
-AC_CHECK_DECLS([pthread_setaffinity_np],[].[],,[[#include <pthread.h>]])
+AC_CHECK_DECLS([pthread_setaffinity_np],[],[],[[
+ #define _GNU_SOURCE
+ #include <pthread.h>]])
# Added to newlib pthreads for RTEMS SMP (np), may not be present
-AC_CHECK_DECLS([pthread_getaffinity_np],[].[],,[[#include <pthread.h>]])
+AC_CHECK_DECLS([pthread_getaffinity_np],[],[],[[
+ #define _GNU_SOURCE
+ #include <pthread.h>]])
-# Added to newlib pthreads for RTEMS (np), may not be present
-AC_CHECK_DECLS([pthread_getattr_np],[].[],,[[#include <pthread.h>]])
+# Added to newlib pthreads for RTEMS SMP (np), may not be present
+AC_CHECK_DECLS([pthread_getattr_np],[],[],[[
+ #define _GNU_SOURCE
+ #include <pthread.h>]])
# Added to newlib pthreads for RTEMS SMP (np), may not be present
AC_CHECK_HEADERS([cpuset.h])
More information about the vc
mailing list