diff options
Diffstat (limited to 'ace/OS.h')
-rw-r--r-- | ace/OS.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -503,12 +503,7 @@ typedef struct } ACE_sema_t; #endif /* ACE_HAS_POSIX_SEM */ -#if defined (ACE_HAS_THREADS) -#if defined (ACE_HAS_STHREADS) -#include <synch.h> -#include <thread.h> -#endif /* ACE_HAS_STHREADS */ - +#if !defined (PTHREAD_CANCEL_ENABLE) struct cancel_state { int cancelstate; @@ -518,6 +513,13 @@ struct cancel_state int canceltype; // e.g., PTHREAD_CANCEL_DEFERRED and PTHREAD_CANCEL_ASYNCHRONOUS. }; +#endif /* PTHREAD_CANCEL_ENABLE */ + +#if defined (ACE_HAS_THREADS) +#if defined (ACE_HAS_STHREADS) +#include <synch.h> +#include <thread.h> +#endif /* ACE_HAS_STHREADS */ #if defined (ACE_HAS_DCETHREADS) || defined (ACE_HAS_PTHREADS) // Definitions for mapping POSIX pthreads onto Solaris threads. |