summaryrefslogtreecommitdiff
path: root/libc/csu/errno-loc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/csu/errno-loc.c')
-rw-r--r--libc/csu/errno-loc.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/libc/csu/errno-loc.c b/libc/csu/errno-loc.c
index 633590f4f..f7de2b7b0 100644
--- a/libc/csu/errno-loc.c
+++ b/libc/csu/errno-loc.c
@@ -1,6 +1,6 @@
/* MT support function to get address of `errno' variable, non-threaded
version.
- Copyright (C) 1996, 1998, 2002, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1998, 2002, 2004, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -21,15 +21,7 @@
#include <errno.h>
#include <tls.h>
-#if ! USE___THREAD && !RTLD_PRIVATE_ERRNO
-#undef errno
-extern int errno;
-#endif
-
int *
-#if ! USE___THREAD
-weak_const_function
-#endif
__errno_location (void)
{
return &errno;