aboutsummaryrefslogtreecommitdiff
path: root/lib/libthr/sys
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2024-09-27 19:27:46 +0000
committerBrooks Davis <brooks@FreeBSD.org>2024-09-27 19:27:46 +0000
commit1235d276b78a769bded01d51c9bf3cdc480db9fb (patch)
tree07da1dd6264ca5d21008eadc940a8c9f2af75d23 /lib/libthr/sys
parent0b325167f60def621536632460caf68e2fab4fb8 (diff)
Diffstat (limited to 'lib/libthr/sys')
-rw-r--r--lib/libthr/sys/thr_error.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libthr/sys/thr_error.c b/lib/libthr/sys/thr_error.c
index 7ce3a84fab6b..ec7a57bf6610 100644
--- a/lib/libthr/sys/thr_error.c
+++ b/lib/libthr/sys/thr_error.c
@@ -39,8 +39,7 @@
#include "libc_private.h"
#include "thr_private.h"
-#undef errno
-extern int errno;
+extern int __libsys_errno;
__weak_reference(__error_threaded, __error);
int *
@@ -53,5 +52,5 @@ __error_threaded(void)
if (curthread != NULL && curthread != _thr_initial)
return (&curthread->error);
}
- return (&errno);
+ return (&__libsys_errno);
}