summaryrefslogtreecommitdiff
path: root/components/libc/pthreads/mqueue.c
diff options
context:
space:
mode:
authorchen zx <[email protected]>2021-08-06 17:05:50 +0800
committerGitHub <[email protected]>2021-08-06 17:05:50 +0800
commitb104bbc4f9d978209e898a6dfced53248e27e3d7 (patch)
treec6852a2c6500e7d7e2902d8a63eac4e1774ae50a /components/libc/pthreads/mqueue.c
parenteb29bb5318b2d4b0a3ff48ed906b72c074bcc17d (diff)
parent054f6db3e651cb6e7340913e969f5656626b9e9a (diff)
Merge branch 'RT-Thread:master' into master
Diffstat (limited to 'components/libc/pthreads/mqueue.c')
-rw-r--r--components/libc/pthreads/mqueue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/libc/pthreads/mqueue.c b/components/libc/pthreads/mqueue.c
index 1af0ab2919..6840164a68 100644
--- a/components/libc/pthreads/mqueue.c
+++ b/components/libc/pthreads/mqueue.c
@@ -8,6 +8,7 @@
*/
#include <string.h>
+#include <sys/signal.h>
#include "mqueue.h"
#include "pthread_internal.h"
@@ -243,7 +244,7 @@ ssize_t mq_timedreceive(mqd_t mqdes,
return -1;
}
- tick = clock_time_to_tick(abs_timeout);
+ tick = rt_timespec_to_tick(abs_timeout);
result = rt_mq_recv(mqdes->mq, msg_ptr, msg_len, tick);
if (result == RT_EOK)