blob: e9add9196acd84bbfeef114c64394eef88447dfb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef _ERRNO_H
#include <stdlib/errno.h>
#if defined _ERRNO_H && !defined _ISOMAC
# include <tls.h> /* Defines USE_TLS. */
# if USE_TLS && HAVE___THREAD && (!defined NOT_IN_libc || defined IS_IN_rtld)
# undef errno
# define errno errno /* For #ifndef errno tests. */
extern __thread int errno;
# define __set_errno(val) (errno = (val))
# else
# define __set_errno(val) (*__errno_location ()) = (val)
# endif
#endif /* _ERRNO_H */
#endif /* ! _ERRNO_H */
|