aboutsummaryrefslogtreecommitdiff
path: root/include/errno.h
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2013-01-28 17:51:03 +0100
committerAndreas Schwab <schwab@suse.de>2013-02-04 10:01:54 +0100
commit903ae060db90aa1d72aa67afbc5a5ecabdcdbef7 (patch)
tree765f691bf506bef1017d12024366e48ca17cb831 /include/errno.h
parent542f94662e8235d9917b0783df70bcdf9d729503 (diff)
downloadglibc-903ae060db90aa1d72aa67afbc5a5ecabdcdbef7.zip
glibc-903ae060db90aa1d72aa67afbc5a5ecabdcdbef7.tar.gz
glibc-903ae060db90aa1d72aa67afbc5a5ecabdcdbef7.tar.bz2
Don't use GLIBC_PRIVATE errno outside of libraries
Diffstat (limited to 'include/errno.h')
-rw-r--r--include/errno.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/errno.h b/include/errno.h
index 98c6080..f1b93a8 100644
--- a/include/errno.h
+++ b/include/errno.h
@@ -17,7 +17,7 @@
# define errno rtld_errno
extern int rtld_errno attribute_hidden;
-# else
+# elif !defined NOT_IN_libc || defined IN_LIB
# include <tls.h>
@@ -29,7 +29,7 @@ extern int rtld_errno attribute_hidden;
# endif
extern __thread int errno attribute_tls_model_ie;
-# endif /* RTLD_PRIVATE_ERRNO */
+# endif /* !NOT_IN_libc || IN_LIB */
# define __set_errno(val) (errno = (val))