rtld_lock.h: Expand scope for IN_RTLD to avoid some conflicts with libc

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D29623
This commit is contained in:
Konstantin Belousov 2021-04-05 07:12:22 +03:00
parent f61ecf60cf
commit 34ca6025dd

View File

@ -46,10 +46,14 @@ struct RtldLockInfo
void (*at_fork)(void);
};
#if defined(IN_RTLD) || defined(PTHREAD_KERNEL)
void _rtld_thread_init(struct RtldLockInfo *) __exported;
void _rtld_atfork_pre(int *) __exported;
void _rtld_atfork_post(int *) __exported;
#endif /* IN_RTLD || PTHREAD_KERNEL */
#ifdef IN_RTLD
struct rtld_lock;