From 7cd3b7caee10d62f7be674afb86a136bf30485d6 Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 15 Dec 2025 14:42:29 +0100 Subject: Add mqueue rt api, add header tests --- include/mqueue.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'include/mqueue.h') diff --git a/include/mqueue.h b/include/mqueue.h index c4582748..109123e4 100644 --- a/include/mqueue.h +++ b/include/mqueue.h @@ -1,11 +1,9 @@ #ifndef __MQUEUE_H #define __MQUEUE_H -#include -#include -#define __BITS_TIMESPEC_H_ -#include -#undef __BITS_TIMESPEC_H_ +#include + +__BEGIN_DECLS #undef O_RDONLY #define O_RDONLY 000000000 @@ -26,6 +24,7 @@ typedef __SIZE_TYPE__ size_t; typedef __INT64_TYPE__ ssize_t; struct sigevent; +struct timespec; struct mq_attr { long mq_flags; long mq_maxmsg; @@ -46,4 +45,6 @@ int mq_timedsend(mqd_t, const char *, size_t, unsigned, const struct timespec *); int mq_unlink(const char *); +__END_DECLS + #endif -- cgit v1.2.3