diff options
Diffstat (limited to 'cpukit/posix/src/mqueueopen.c')
-rw-r--r-- | cpukit/posix/src/mqueueopen.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cpukit/posix/src/mqueueopen.c b/cpukit/posix/src/mqueueopen.c index fe63d4ea6e..4bb8025e65 100644 --- a/cpukit/posix/src/mqueueopen.c +++ b/cpukit/posix/src/mqueueopen.c @@ -32,6 +32,7 @@ #include <rtems/posix/mqueueimpl.h> #include <rtems/score/wkspace.h> +#include <rtems/sysinit.h> #include <stdarg.h> #include <fcntl.h> @@ -191,3 +192,14 @@ mqd_t mq_open( _Objects_Allocator_unlock(); return status; } + +static void _POSIX_Message_queue_Manager_initialization( void ) +{ + _Objects_Initialize_information( &_POSIX_Message_queue_Information ); +} + +RTEMS_SYSINIT_ITEM( + _POSIX_Message_queue_Manager_initialization, + RTEMS_SYSINIT_POSIX_MESSAGE_QUEUE, + RTEMS_SYSINIT_ORDER_MIDDLE +); |