summaryrefslogtreecommitdiff
path: root/libc/stdio/tmpfile.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-01-06 09:13:00 +0000
committerEric Andersen <andersen@codepoet.org>2002-01-06 09:13:00 +0000
commitda0db0ab5640256bc4217abcfc6a6e9285c27bfc (patch)
tree8ad980159b05be079d0048fae6fa34eeb57df7fa /libc/stdio/tmpfile.c
parentb55793de837fed3ecda88ead8a482fb6a5280cca (diff)
Support tmpfile64 (just a weak for tmpfile)
-Erik
Diffstat (limited to 'libc/stdio/tmpfile.c')
-rw-r--r--libc/stdio/tmpfile.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/stdio/tmpfile.c b/libc/stdio/tmpfile.c
index 8c11d2ff7..7669e46db 100644
--- a/libc/stdio/tmpfile.c
+++ b/libc/stdio/tmpfile.c
@@ -16,6 +16,7 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+#include <features.h>
#include <stdio.h>
#include <unistd.h>
@@ -48,4 +49,6 @@ FILE * tmpfile (void)
return f;
}
-
+#ifdef __UCLIBC_HAVE_LFS__
+weak_alias(tmpfile, tmpfile64);
+#endif