summaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-11-12 22:02:32 +0000
committerRoland McGrath <roland@gnu.org>2002-11-12 22:02:32 +0000
commit00404a964ab9b3a5205605ed7736c8ded2ed1aec (patch)
treeaecd064ed6bb381fa5c9ccc4b47a3f8534ab7fc8 /libio
parent6e14793db059304e39ec825c2f8adf2f6a140b22 (diff)
downloadglibc-00404a964ab9b3a5205605ed7736c8ded2ed1aec.tar.gz
2002-11-12 Roland McGrath <roland@redhat.com>
* libio/libioP.h [_LIBC && !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_G_IO_NO_BACKWARD_COMPAT): Define it.
Diffstat (limited to 'libio')
-rw-r--r--libio/libioP.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libio/libioP.h b/libio/libioP.h
index 105ffccecc..4fb0d6aba5 100644
--- a/libio/libioP.h
+++ b/libio/libioP.h
@@ -87,6 +87,16 @@ extern "C" {
* object being acted on (i.e. the 'this' parameter).
*/
+#ifdef _LIBC
+# include <shlib-compat.h>
+# if !SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)
+ /* Setting this macro disables the use of the _vtable_offset
+ bias in _IO_JUMPS_FUNCS, below. That is only needed if we
+ want to support old binaries (see oldfileops.c). */
+# define _G_IO_NO_BACKWARD_COMPAT 1
+# endif
+#endif
+
#if (!defined _IO_USE_OLD_IO_FILE \
&& (!defined _G_IO_NO_BACKWARD_COMPAT || _G_IO_NO_BACKWARD_COMPAT == 0))
# define _IO_JUMPS_OFFSET 1