aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-04-05 04:12:22 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-04-09 20:46:23 +0000
commit34ca6025ddfea9899024eb6e7617091c5bc5149a (patch)
tree5c9c96a06aa861ec9599e0c83a8bd4e61f0952c0 /libexec
parentf61ecf60cfce6172df803a9e5e099aab2d4aedcd (diff)
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rtld-elf/rtld_lock.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libexec/rtld-elf/rtld_lock.h b/libexec/rtld-elf/rtld_lock.h
index cc1fd83169f8..9aa769b1f7e6 100644
--- a/libexec/rtld-elf/rtld_lock.h
+++ b/libexec/rtld-elf/rtld_lock.h
@@ -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;