From 903ae060db90aa1d72aa67afbc5a5ecabdcdbef7 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 28 Jan 2013 17:51:03 +0100 Subject: Don't use GLIBC_PRIVATE errno outside of libraries --- include/errno.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/errno.h') diff --git a/include/errno.h b/include/errno.h index 98c6080528..f1b93a881b 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 @@ -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)) -- cgit v1.2.3