LT.old: Make __errno_location/__h_errno_location thread safe
[uclibc-ng.git] / libc / misc / internals / __errno_location.c
blob9bbc2d77965389479623bdf92d39fdea8a08a07d
1 /*
2 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
4 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
5 */
7 #include <features.h>
8 #include <errno.h>
10 #ifndef __UCLIBC_HAS_TLS__
11 # undef errno
12 extern int errno;
13 #endif
15 int *__errno_location(void)
17 return &errno;