about summary refs log tree commit diff
path: root/libio/iofclose.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-03-21 22:08:26 +0000
committerUlrich Drepper <drepper@redhat.com>2000-03-21 22:08:26 +0000
commit0bf98029cd3f230233c48eee7f3e6d49cce37d74 (patch)
tree230214f73f486bb5cbafece7ab46c2787f36eb5f /libio/iofclose.c
parentcb162e13ed384f33f2712b4fc976e70a1fa7d9c4 (diff)
downloadglibc-0bf98029cd3f230233c48eee7f3e6d49cce37d74.tar.gz
glibc-0bf98029cd3f230233c48eee7f3e6d49cce37d74.tar.xz
glibc-0bf98029cd3f230233c48eee7f3e6d49cce37d74.zip
Update.
	* libio/fileops.c: Use new macros from shlib-compat.h to define
	versions.
	* libio/iofclose.c: Likewise.
	* libio/oldiofclose.c: Likewise.
Diffstat (limited to 'libio/iofclose.c')
-rw-r--r--libio/iofclose.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/libio/iofclose.c b/libio/iofclose.c
index a10ed9266f..7b8340c3bc 100644
--- a/libio/iofclose.c
+++ b/libio/iofclose.c
@@ -29,6 +29,7 @@
 #endif
 #if _LIBC
 # include "../iconv/gconv_int.h"
+# include <shlib-compat.h>
 #endif
 
 int
@@ -86,13 +87,6 @@ _IO_new_fclose (fp)
   return status;
 }
 
-#if defined PIC && DO_VERSIONING
+versioned_symbol (libc, _IO_new_fclose, _IO_fclose, GLIBC_2_1);
 strong_alias (_IO_new_fclose, __new_fclose)
-default_symbol_version (_IO_new_fclose, _IO_fclose, GLIBC_2.1);
-default_symbol_version (__new_fclose, fclose, GLIBC_2.1);
-#else
-# ifdef weak_alias
-weak_alias (_IO_new_fclose, _IO_fclose)
-weak_alias (_IO_new_fclose, fclose)
-# endif
-#endif
+versioned_symbol (libc, __new_fclose, fclose, GLIBC_2_1);