diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-03-11 06:06:12 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-03-11 06:06:12 +0000 |
commit | f032388692f35c50a10d7ce632a2ff606ea02825 (patch) | |
tree | 2aa32dc731b38b4c98f1e5915bc7dfecabc2cdf0 /sysdeps/generic/errno.c | |
parent | 6d3a2bec95f9bdbe7db4344b1ada866561e95857 (diff) | |
download | glibc-f032388692f35c50a10d7ce632a2ff606ea02825.tar.gz |
Update.
* sysdeps/generic/errno.c: Include <dl-sysdep.h>. Use
RTLD_PRIVATE_ERRNO to decide whether errno compat symbols are needed.
Diffstat (limited to 'sysdeps/generic/errno.c')
-rw-r--r-- | sysdeps/generic/errno.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/generic/errno.c b/sysdeps/generic/errno.c index 88e84d3204..10dbabe762 100644 --- a/sysdeps/generic/errno.c +++ b/sysdeps/generic/errno.c @@ -1,5 +1,5 @@ /* Definition of `errno' variable. Canonical version. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -19,6 +19,7 @@ #include <errno.h> #include <tls.h> +#include <dl-sysdep.h> #undef errno #if USE___THREAD @@ -36,7 +37,7 @@ strong_alias (errno, _errno) link time. Programs must use the accessor functions. RTLD is special, since it's not exported from there at any time. */ # if defined HAVE_ELF && defined SHARED && defined DO_VERSIONING \ - && !defined IS_IN_rtld + && !RTLD_PRIVATE_ERRNO # include <shlib-compat.h> compat_symbol (libc, errno, errno, GLIBC_2_0); compat_symbol (libc, _errno, _errno, GLIBC_2_0); |