diff options
| author | Brooks Davis <brooks@FreeBSD.org> | 2024-09-27 19:27:46 +0000 |
|---|---|---|
| committer | Brooks Davis <brooks@FreeBSD.org> | 2024-09-27 19:27:46 +0000 |
| commit | 1235d276b78a769bded01d51c9bf3cdc480db9fb (patch) | |
| tree | 07da1dd6264ca5d21008eadc940a8c9f2af75d23 /lib/libthr/sys | |
| parent | 0b325167f60def621536632460caf68e2fab4fb8 (diff) | |
Diffstat (limited to 'lib/libthr/sys')
| -rw-r--r-- | lib/libthr/sys/thr_error.c | 5 |
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); } |
