summaryrefslogtreecommitdiffstats
path: root/c/src/tests/psxtests/psxhdrs/mutex03.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/tests/psxtests/psxhdrs/mutex03.c')
-rw-r--r--c/src/tests/psxtests/psxhdrs/mutex03.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/c/src/tests/psxtests/psxhdrs/mutex03.c b/c/src/tests/psxtests/psxhdrs/mutex03.c
index 01950381cb..6ca68ea73f 100644
--- a/c/src/tests/psxtests/psxhdrs/mutex03.c
+++ b/c/src/tests/psxtests/psxhdrs/mutex03.c
@@ -15,6 +15,10 @@
#include <pthread.h>
+#ifndef _POSIX_THREADS
+#error "rtems is supposed to have pthread_mutex_init"
+#endif
+
void test( void )
{
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;