summaryrefslogtreecommitdiffstats
path: root/c/src/tests/psxtests/psxhdrs/mutex07.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/tests/psxtests/psxhdrs/mutex07.c')
-rw-r--r--c/src/tests/psxtests/psxhdrs/mutex07.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/c/src/tests/psxtests/psxhdrs/mutex07.c b/c/src/tests/psxtests/psxhdrs/mutex07.c
index 3c372d52e6..c471f921b5 100644
--- a/c/src/tests/psxtests/psxhdrs/mutex07.c
+++ b/c/src/tests/psxtests/psxhdrs/mutex07.c
@@ -15,6 +15,13 @@
#include <pthread.h>
+#ifndef _POSIX_THREAD_PRIO_INHERIT
+#error "rtems is supposed to have pthread_mutexattr_setprotocol"
+#endif
+#ifndef _POSIX_THREAD_PRIO_PROTECT
+#error "rtems is supposed to have pthread_mutexattr_setprotocol"
+#endif
+
void test( void )
{
pthread_mutexattr_t attribute;