From 4ea7c12a20b405e543f947623081696299844e38 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 25 May 2021 16:17:58 +0200 Subject: [PATCH] Cygwin: POSIX msg queues: move definition of struct msg_hdr ...to mqueue_types.h header. Signed-off-by: Corinna Vinschen --- winsup/cygwin/mqueue_types.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/winsup/cygwin/mqueue_types.h b/winsup/cygwin/mqueue_types.h index 7c4a10e07..3a4b127ca 100644 --- a/winsup/cygwin/mqueue_types.h +++ b/winsup/cygwin/mqueue_types.h @@ -39,6 +39,13 @@ struct mq_hdr uint32_t mqh_magic; /* Expect MQI_MAGIC here, otherwise it's an old-style message queue. */ }; + +struct msg_hdr +{ + int32_t msg_next; /* index of next on linked list */ + int32_t msg_len; /* actual length */ + unsigned int msg_prio; /* priority */ +}; #pragma pack (pop) struct mq_info