From 3015ed641a41059dec9abad1eb3872a006ee6324 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 14 Dec 2015 16:33:39 +0100 Subject: Optional POSIX Message Queue initialization Update #2408. --- cpukit/posix/src/mqueue.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'cpukit/posix/src/mqueue.c') diff --git a/cpukit/posix/src/mqueue.c b/cpukit/posix/src/mqueue.c index 43878b708c..0f261f6947 100644 --- a/cpukit/posix/src/mqueue.c +++ b/cpukit/posix/src/mqueue.c @@ -28,10 +28,15 @@ #include #include +#include #include #include #include +Objects_Information _POSIX_Message_queue_Information; + +Objects_Information _POSIX_Message_queue_Information_fds; + /* * _POSIX_Message_queue_Manager_initialization * @@ -42,7 +47,7 @@ * Output parameters: NONE */ -void _POSIX_Message_queue_Manager_initialization(void) +static void _POSIX_Message_queue_Manager_initialization(void) { _Objects_Initialize_information( &_POSIX_Message_queue_Information, /* object information table */ @@ -76,3 +81,9 @@ void _POSIX_Message_queue_Manager_initialization(void) #endif ); } + +RTEMS_SYSINIT_ITEM( + _POSIX_Message_queue_Manager_initialization, + RTEMS_SYSINIT_POSIX_MESSAGE_QUEUE, + RTEMS_SYSINIT_ORDER_MIDDLE +); -- cgit v1.2.3