summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/mutex04.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxhdrs/mutex04.c')
-rw-r--r--testsuites/psxtests/psxhdrs/mutex04.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/testsuites/psxtests/psxhdrs/mutex04.c b/testsuites/psxtests/psxhdrs/mutex04.c
index 2a7c17e4d4..b0ef6c53a6 100644
--- a/testsuites/psxtests/psxhdrs/mutex04.c
+++ b/testsuites/psxtests/psxhdrs/mutex04.c
@@ -15,9 +15,13 @@
#include <pthread.h>
+#ifndef _POSIX_THREADS
+#error "rtems is supposed to have pthread_mutex_destroy"
+#endif
+
void test( void )
{
- pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
+ pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int result;
result = pthread_mutex_destroy( &mutex );