1570af302Sopenharmony_ci#include "time32.h"
2570af302Sopenharmony_ci#include <mqueue.h>
3570af302Sopenharmony_ci#include <time.h>
4570af302Sopenharmony_ci
5570af302Sopenharmony_cissize_t __mq_timedreceive_time32(mqd_t mqd, char *restrict msg, size_t len, unsigned *restrict prio, const struct timespec32 *restrict ts32)
6570af302Sopenharmony_ci{
7570af302Sopenharmony_ci	return mq_timedreceive(mqd, msg, len, prio, ts32 ? (&(struct timespec){
8570af302Sopenharmony_ci		.tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec}) : 0);
9570af302Sopenharmony_ci}
10