glibc/include/errno.h
Ulrich Drepper e470bcadf1 Update.
* include/errno.h: Use errno definition with __thread for now only
	in libc and ld.so.
2002-09-06 09:35:02 +00:00

21 lines
471 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 && (!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 */