diff options
author | Roland McGrath <roland@gnu.org> | 2002-11-25 00:14:23 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-11-25 00:14:23 +0000 |
commit | 983d597e9f247ebd4b40d91a06d7e9aae7d7428c (patch) | |
tree | adeb151ff90e33c985de246d43a217ca3df2bd22 /include/errno.h | |
parent | bf2cc5fb028fecf8d6b1adffd952f7402f685923 (diff) | |
download | glibc-983d597e9f247ebd4b40d91a06d7e9aae7d7428c.zip glibc-983d597e9f247ebd4b40d91a06d7e9aae7d7428c.tar.gz glibc-983d597e9f247ebd4b40d91a06d7e9aae7d7428c.tar.bz2 |
* include/errno.h (__set_errno): Define as errno = val
unconditionally.
Diffstat (limited to 'include/errno.h')
-rw-r--r-- | include/errno.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/errno.h b/include/errno.h index 1663538..05888c1 100644 --- a/include/errno.h +++ b/include/errno.h @@ -16,7 +16,6 @@ # undef errno # define errno errno /* For #ifndef errno tests. */ extern int errno attribute_hidden; -# define __set_errno(val) (errno = (val)) # else @@ -30,13 +29,12 @@ extern int errno attribute_hidden; # define errno errno /* For #ifndef errno tests. */ # endif extern __thread int errno attribute_tls_model_ie; -# define __set_errno(val) (errno = (val)) -# else -# define __set_errno(val) (*__errno_location ()) = (val) # endif # endif /* RTLD_PRIVATE_ERRNO */ +# define __set_errno(val) (errno = (val)) + #endif /* _ERRNO_H */ #endif /* ! _ERRNO_H */ |