3 #include <stdlib/errno.h>
5 #if defined _ERRNO_H && !defined _ISOMAC
7 # include <tls.h> /* Defines USE_TLS. */
9 # if USE_TLS && HAVE___THREAD && (!defined NOT_IN_libc || defined IS_IN_rtld)
11 # define errno errno /* For #ifndef errno tests. */
12 extern __thread
int errno
;
13 # define __set_errno(val) (errno = (val))
15 # define __set_errno(val) (*__errno_location ()) = (val)
20 #endif /* ! _ERRNO_H */