diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mqueue.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/mqueue.h b/include/mqueue.h index 8243a637d2..7a2459e603 100644 --- a/include/mqueue.h +++ b/include/mqueue.h @@ -2,21 +2,20 @@ #ifndef _ISOMAC extern __typeof (mq_timedreceive) __mq_timedreceive __nonnull ((2, 5)); +extern __typeof (mq_timedsend) __mq_timedsend __nonnull ((2, 5)); -# if IS_IN (librt) +# if IS_IN (librt) && !PTHREAD_IN_LIBC hidden_proto (mq_timedsend) -extern __typeof (mq_timedsend) __mq_timedsend __nonnull ((2, 5)); hidden_proto (__mq_timedsend) -# if !PTHREAD_IN_LIBC hidden_proto (mq_setattr) hidden_proto (mq_timedreceive) hidden_proto (__mq_timedreceive) -# endif -# endif /* IS_IN (librt) */ +# endif # if PTHREAD_IN_LIBC libc_hidden_proto (mq_setattr) libc_hidden_proto (__mq_timedreceive) +libc_hidden_proto (__mq_timedsend) /* Called from fork so that the new subprocess re-creates the notification thread if necessary. */ @@ -31,7 +30,6 @@ void __mq_notify_fork_subprocess (void) attribute_hidden; extern int __mq_timedsend_time64 (mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned int msg_prio, const struct __timespec64 *abs_timeout); -librt_hidden_proto (__mq_timedsend_time64) extern ssize_t __mq_timedreceive_time64 (mqd_t mqdes, char *__restrict msg_ptr, size_t msg_len, @@ -40,8 +38,10 @@ extern ssize_t __mq_timedreceive_time64 (mqd_t mqdes, abs_timeout); # if PTHREAD_IN_LIBC libc_hidden_proto (__mq_timedreceive_time64) +libc_hidden_proto (__mq_timedsend_time64) # else librt_hidden_proto (__mq_timedreceive_time64) +librt_hidden_proto (__mq_timedsend_time64) # endif #endif #endif |