diff options
Diffstat (limited to 'cpukit/posix/include/rtems/posix/cancel.h')
-rw-r--r-- | cpukit/posix/include/rtems/posix/cancel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/posix/include/rtems/posix/cancel.h b/cpukit/posix/include/rtems/posix/cancel.h index c1fff9c04d..7b2ab5ca42 100644 --- a/cpukit/posix/include/rtems/posix/cancel.h +++ b/cpukit/posix/include/rtems/posix/cancel.h @@ -21,6 +21,7 @@ #include <rtems/posix/threadsup.h> +#ifndef HAVE_STRUCT__PTHREAD_CLEANUP_CONTEXT /** * This structure is used to manage the cancelation handlers. */ @@ -32,6 +33,7 @@ typedef struct { /** This field is the argument to the cancelation routine. */ void *arg; } POSIX_Cancel_Handler_control; +#endif /* HAVE_STRUCT__PTHREAD_CLEANUP_CONTEXT */ /** * @brief POSIX run thread cancelation. |