summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src')
-rw-r--r--cpukit/score/src/threadblockingoperationcancel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/src/threadblockingoperationcancel.c b/cpukit/score/src/threadblockingoperationcancel.c
index 82366af144..56db344bd4 100644
--- a/cpukit/score/src/threadblockingoperationcancel.c
+++ b/cpukit/score/src/threadblockingoperationcancel.c
@@ -43,7 +43,8 @@ void _Thread_blocking_operation_Cancel(
*/
#if defined(RTEMS_DEBUG)
- if ( (sync_state == THREAD_BLOCKING_OPERATION_SYNCHRONIZED)
+ #include <rtems/score/interr.h>
+ if ( (sync_state == THREAD_BLOCKING_OPERATION_SYNCHRONIZED) ||
(sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) ) {
_Internal_error_Occurred(
INTERNAL_ERROR_CORE,