diff options
-rw-r--r-- | include/netdb.h | 3 | ||||
-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 |
4 files changed, 2 insertions, 8 deletions
diff --git a/include/netdb.h b/include/netdb.h index 0f361bb6f..7ce01c24d 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -58,9 +58,6 @@ __BEGIN_DECLS /* Function to get address of global `h_errno' variable. */ extern int *__h_errno_location (void) __THROW __attribute__ ((__const__)); -#ifdef _LIBC -extern int weak_const_function *__h_errno_location(void); -#endif /* Macros for accessing h_errno from inside libc. */ #ifdef _LIBC 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. */ |