Update.
[glibc.git] / include / errno.h
blob934dae791affab036b45aa39c956aec7dde485da
1 #ifndef _ERRNO_H
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
10 # undef errno
11 # define errno errno /* For #ifndef errno tests. */
12 extern __thread int errno;
13 # define __set_errno(val) (errno = (val))
14 # else
15 # define __set_errno(val) (*__errno_location ()) = (val)
16 # endif
18 #endif /* _ERRNO_H */
20 #endif /* ! _ERRNO_H */