diff options
Diffstat (limited to 'cpukit/include/rtems/stdio-redirect.h')
-rw-r--r-- | cpukit/include/rtems/stdio-redirect.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/include/rtems/stdio-redirect.h b/cpukit/include/rtems/stdio-redirect.h index 6f1d4cdd98..e78448c2ac 100644 --- a/cpukit/include/rtems/stdio-redirect.h +++ b/cpukit/include/rtems/stdio-redirect.h @@ -42,6 +42,7 @@ #include <stdbool.h> #include <rtems.h> +#include <rtems/thread.h> #ifdef __cplusplus extern "C" { @@ -63,7 +64,7 @@ typedef struct { volatile uint32_t state; /**< The state. */ rtems_id reader; /**< The reader thread. */ - rtems_id lock; /**< Lock for this struct. */ + rtems_mutex lock; /**< Lock for this struct. */ int fd; /**< The file descriptor to redirect. */ int fd_dup; /**< Duplicated fd to write to. */ int pipe[2]; /**< The pipe to the reader thread. */ |