diff options
Diffstat (limited to 'libc')
-rw-r--r-- | libc/misc/internals/__errno_location.c | 2 | ||||
-rw-r--r-- | libc/misc/internals/__h_errno_location.c | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/bits/errno.h | 3 |
3 files changed, 2 insertions, 5 deletions
diff --git a/libc/misc/internals/__errno_location.c b/libc/misc/internals/__errno_location.c index 9bbc2d779..6c359f933 100644 --- a/libc/misc/internals/__errno_location.c +++ b/libc/misc/internals/__errno_location.c @@ -12,7 +12,7 @@ extern int errno; #endif -int *__errno_location(void) +int weak_const_function *__errno_location(void) { return &errno; } diff --git a/libc/misc/internals/__h_errno_location.c b/libc/misc/internals/__h_errno_location.c index b30859e81..c510c8143 100644 --- a/libc/misc/internals/__h_errno_location.c +++ b/libc/misc/internals/__h_errno_location.c @@ -12,7 +12,7 @@ extern int h_errno; #endif -int *__h_errno_location(void) +int weak_const_function *__h_errno_location(void) { return &h_errno; } diff --git a/libc/sysdeps/linux/common/bits/errno.h b/libc/sysdeps/linux/common/bits/errno.h index 611b83590..7c0aeb179 100644 --- a/libc/sysdeps/linux/common/bits/errno.h +++ b/libc/sysdeps/linux/common/bits/errno.h @@ -42,9 +42,6 @@ # ifndef __ASSEMBLER__ /* Function to get address of global `errno' variable. */ extern int *__errno_location (void) __THROW __attribute__ ((__const__)); -# ifdef _LIBC -extern int weak_const_function *__errno_location(void); -# endif # ifdef __UCLIBC_HAS_THREADS__ /* When using threads, errno is a per-thread value. */ |