This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: _G_IO_NO_BACKWARD_COMPAT
- From: Roland McGrath <roland at frob dot com>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: Jeff Bailey <jbailey at nisa dot net>, Lars Brinkhoff <lars at nocrew dot org>,libc-alpha at sources dot redhat dot com
- Date: Sun, 10 Nov 2002 13:10:41 -0800
- Subject: Re: _G_IO_NO_BACKWARD_COMPAT
If you want to try this patch on a platform that starts at GLIBC_2.2,
it should work:
--- libioP.h.~1.59.~ Tue Nov 5 02:31:57 2002
+++ libioP.h Sun Nov 10 11:38:36 2002
@@ -87,6 +87,13 @@ 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_2)
+# 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