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