From 12028b50310e83ffa0cafbca8cfffc222bfd6ac8 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 25 Jun 2021 10:30:36 +0200 Subject: Linux: Move mq_close from librt to libc The symbol was moved using scripts/move-symbol-to-libc.py. Reviewed-by: Adhemerva Zanella --- sysdeps/unix/sysv/linux/mq_close.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv/linux/mq_close.c') diff --git a/sysdeps/unix/sysv/linux/mq_close.c b/sysdeps/unix/sysv/linux/mq_close.c index 83a28fd..b07db33 100644 --- a/sysdeps/unix/sysv/linux/mq_close.c +++ b/sysdeps/unix/sysv/linux/mq_close.c @@ -18,11 +18,16 @@ #include #include #include +#include /* Removes the association between message queue descriptor MQDES and its message queue. */ int -mq_close (mqd_t mqdes) +__mq_close (mqd_t mqdes) { return INLINE_SYSCALL (close, 1, mqdes); } +versioned_symbol (libc, __mq_close, mq_close, GLIBC_2_34); +#if OTHER_SHLIB_COMPAT (librt, GLIBC_2_3_4, GLIBC_2_34) +compat_symbol (libc, __mq_close, mq_close, GLIBC_2_3_4); +#endif -- cgit v1.1