diff options
Diffstat (limited to 'libc/misc/internals/__errno_location.c')
| -rw-r--r-- | libc/misc/internals/__errno_location.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/libc/misc/internals/__errno_location.c b/libc/misc/internals/__errno_location.c index c0b1532b9..4401ba249 100644 --- a/libc/misc/internals/__errno_location.c +++ b/libc/misc/internals/__errno_location.c @@ -1,16 +1,17 @@ -#include <errno.h> +/* + * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org> + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ -#ifndef __UCLIBC_HAS_THREADS_NATIVE__ -#undef errno -extern int errno; -#endif +#include "internal_errno.h" -int * -#ifndef __UCLIBC_HAS_THREADS_NATIVE__ -weak_const_function -#endif -__errno_location (void) +/* psm: moved to bits/errno.h: */ +/* libc_hidden_proto(__errno_location) */ +int * weak_const_function __errno_location (void) { return &errno; } - +#ifdef IS_IN_libc /* not really need, only to keep in sync w/ libc_hidden_proto */ +libc_hidden_weak(__errno_location) +#endif |
