git: dfe1bc3672cd - stable/15 - libc: provide the declaration for __libsys_errno in libc_private.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Nov 2026 01:06:53 UTC
The branch stable/15 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=dfe1bc3672cdbb938662fea6449097cd6e43a443
commit dfe1bc3672cdbb938662fea6449097cd6e43a443
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-10-19 22:18:24 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-11-10 19:53:54 +0000
libc: provide the declaration for __libsys_errno in libc_private.h
(cherry picked from commit 7f309ac03989032903cce945a743a6046e496b10)
---
lib/libc/include/libc_private.h | 2 ++
lib/libthr/sys/thr_error.c | 2 --
lib/libthr/thread/thr_rtld.c | 2 --
3 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/lib/libc/include/libc_private.h b/lib/libc/include/libc_private.h
index 299629fce2ad..23c2269fe099 100644
--- a/lib/libc/include/libc_private.h
+++ b/lib/libc/include/libc_private.h
@@ -384,4 +384,6 @@ struct uexterror;
int __uexterr_format(const struct uexterror *ue, char *buf, size_t bufsz);
int __libc_uexterr_gettext(char *buf, size_t bufsz);
+extern int __libsys_errno;
+
#endif /* _LIBC_PRIVATE_H_ */
diff --git a/lib/libthr/sys/thr_error.c b/lib/libthr/sys/thr_error.c
index ec7a57bf6610..1916e78109af 100644
--- a/lib/libthr/sys/thr_error.c
+++ b/lib/libthr/sys/thr_error.c
@@ -39,8 +39,6 @@
#include "libc_private.h"
#include "thr_private.h"
-extern int __libsys_errno;
-
__weak_reference(__error_threaded, __error);
int *
__error_threaded(void)
diff --git a/lib/libthr/thread/thr_rtld.c b/lib/libthr/thread/thr_rtld.c
index 3cfdfc548cf2..918f739c3bd1 100644
--- a/lib/libthr/thread/thr_rtld.c
+++ b/lib/libthr/thread/thr_rtld.c
@@ -39,8 +39,6 @@
#include "rtld_lock.h"
#include "thr_private.h"
-extern int __libsys_errno;
-
static int _thr_rtld_clr_flag(int);
static void *_thr_rtld_lock_create(void);
static void _thr_rtld_lock_destroy(void *);