From e2784760e51ec0de62bbee61d27a85147460ece0 Mon Sep 17 00:00:00 2001 From: Austin Foxley Date: Mon, 21 Sep 2009 18:25:22 -0700 Subject: not-cancel: use *_not_cancel variants directly add a no threads version of not-cancel.h to fallback on Signed-off-by: Austin Foxley --- libc/stdio/tmpfile.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'libc/stdio/tmpfile.c') diff --git a/libc/stdio/tmpfile.c b/libc/stdio/tmpfile.c index f11595a34..57f252715 100644 --- a/libc/stdio/tmpfile.c +++ b/libc/stdio/tmpfile.c @@ -20,10 +20,7 @@ #include #include #include "../misc/internals/tempname.h" -#ifdef __UCLIBC_HAS_THREADS_NATIVE__ -#include #include -#endif /* This returns a new stream opened on a temporary file (generated @@ -47,11 +44,7 @@ FILE * tmpfile (void) (void) remove (buf); if ((f = fdopen (fd, "w+b")) == NULL) -#ifdef __UCLIBC_HAS_THREADS_NATIVE__ close_not_cancel (fd); -#else - close (fd); -#endif return f; } -- cgit v1.2.3