diff options
Diffstat (limited to 'ACE/tests/Thread_Attrs_Test.cpp')
-rw-r--r-- | ACE/tests/Thread_Attrs_Test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ACE/tests/Thread_Attrs_Test.cpp b/ACE/tests/Thread_Attrs_Test.cpp index 270401efdc7..7a9c8351b79 100644 --- a/ACE/tests/Thread_Attrs_Test.cpp +++ b/ACE/tests/Thread_Attrs_Test.cpp @@ -64,7 +64,7 @@ Cancel_Check::Cancel_Check (bool enable, bool async) int Cancel_Check::svc (void) { -#if defined (ACE_HAS_PTHREADS) +#if defined (ACE_HAS_PTHREADS) && !defined (ACE_LACKS_PTHREAD_CANCEL) int state; pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, &state); if (state == PTHREAD_CANCEL_ENABLE && !this->enable_req_) |