summaryrefslogtreecommitdiff
path: root/libio/pclose.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/pclose.c')
-rw-r--r--libio/pclose.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/libio/pclose.c b/libio/pclose.c
index 0640d47599..944365934d 100644
--- a/libio/pclose.c
+++ b/libio/pclose.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU IO Library.
This library is free software; you can redistribute it and/or
@@ -28,7 +28,7 @@
#include <errno.h>
int
-pclose (fp)
+__new_pclose (fp)
FILE *fp;
{
#if 0
@@ -37,5 +37,13 @@ pclose (fp)
if (fp is not a proc_file)
return -1;
#endif
- return _IO_fclose (fp);
+ return _IO_new_fclose (fp);
}
+
+#if defined PIC && DO_VERSIONING
+default_symbol_version (__new_pclose, pclose, GLIBC_2.1);
+#else
+# ifdef weak_alias
+weak_alias (__new_pclose, pclose)
+# endif
+#endif