summaryrefslogtreecommitdiffstats
path: root/c/src/tests/psxtests/psxhdrs/pthread05.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/tests/psxtests/psxhdrs/pthread05.c')
-rw-r--r--c/src/tests/psxtests/psxhdrs/pthread05.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/c/src/tests/psxtests/psxhdrs/pthread05.c b/c/src/tests/psxtests/psxhdrs/pthread05.c
index f4fcd56bb2..1736b55c94 100644
--- a/c/src/tests/psxtests/psxhdrs/pthread05.c
+++ b/c/src/tests/psxtests/psxhdrs/pthread05.c
@@ -16,6 +16,14 @@
#include <pthread.h>
#include <limits.h> /* only for PTHREAD_STACK_MIN */
+#ifndef _POSIX_THREADS
+#error "rtems is supposed to have pthread_setstacksize"
+#endif
+
+#ifndef _POSIX_THREAD_ATTR_STACKSIZE
+#error "rtems is supposed to have pthread_setstacksize"
+#endif
+
void test( void )
{
int result;