mirror of
https://sourceware.org/git/glibc.git
synced 2024-09-21 09:00:10 +00:00
21 lines
423 B
C
21 lines
423 B
C
#ifndef _ERRNO_H
|
|
|
|
#include <stdlib/errno.h>
|
|
|
|
#if defined _ERRNO_H && !defined _ISOMAC
|
|
|
|
# include <tls.h> /* Defines USE_TLS. */
|
|
|
|
# if USE_TLS && HAVE___THREAD
|
|
# 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 */
|