about summary refs log tree commit diff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-06-12 20:36:22 +0000
committerRoland McGrath <roland@gnu.org>2002-06-12 20:36:22 +0000
commit650f6700d28802c44196299a57c0f958118abeef (patch)
tree09d0bfeda3609fa33f8b07080172c8c378690f2c /sysdeps/generic
parent337738b77123cbfed07d53c9408eb74109856d0a (diff)
downloadglibc-650f6700d28802c44196299a57c0f958118abeef.tar.gz
glibc-650f6700d28802c44196299a57c0f958118abeef.tar.xz
glibc-650f6700d28802c44196299a57c0f958118abeef.zip
* sysdeps/generic/tmpfile.c [USE_IN_LIBIO] (tmpfile): Don't #define
	if already defined.
	[USE_IN_LIBIO]: Conditionalize versioned_symbol use on
	[GEN_THIS == __GT_FILE] so that tmpfile64.c's inclusion doesn't get it.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/tmpfile.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/generic/tmpfile.c b/sysdeps/generic/tmpfile.c
index 051cb79abd..847a7446b3 100644
--- a/sysdeps/generic/tmpfile.c
+++ b/sysdeps/generic/tmpfile.c
@@ -23,7 +23,9 @@
 #ifdef USE_IN_LIBIO
 # include <iolibio.h>
 # define __fdopen INTUSE(_IO_fdopen)
-# define tmpfile __new_tmpfile
+# ifndef tmpfile
+#  define tmpfile __new_tmpfile
+# endif
 #endif
 
 #ifndef GEN_THIS
@@ -57,7 +59,7 @@ tmpfile (void)
   return f;
 }
 
-#ifdef USE_IN_LIBIO
+#if defined USE_IN_LIBIO && GEN_THIS == __GT_FILE /* Not for tmpfile64.  */
 # undef tmpfile
 # include <shlib-compat.h>
 versioned_symbol (libc, __new_tmpfile, tmpfile, GLIBC_2_1);