From e029e033d52a850c135e286dea907a2b8468637b Mon Sep 17 00:00:00 2001 From: David Monniaux Date: Fri, 1 Feb 2019 21:43:47 +0100 Subject: ugly hack to access _impure_thread_data (stdin, stdout, stderr...) it works! --- test/monniaux/micro-bunzip/micro-bunzip.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/monniaux/micro-bunzip') diff --git a/test/monniaux/micro-bunzip/micro-bunzip.c b/test/monniaux/micro-bunzip/micro-bunzip.c index 532fc7b5..7197ede5 100644 --- a/test/monniaux/micro-bunzip/micro-bunzip.c +++ b/test/monniaux/micro-bunzip/micro-bunzip.c @@ -520,8 +520,6 @@ extern char *uncompressStream(int src_fd, int dst_fd) int main(int argc, char *argv[]) { char *c=uncompressStream(0,1); - extern FILE *fdopen(int fd, const char *mode); - FILE *err = fdopen(2, "w"); - fprintf(err, "%s\ncycles=%lu\n", c ? c : "Completed OK", get_total_clock()); + fprintf(stderr, "%s\ncycles=%lu\n", c ? c : "Completed OK", get_total_clock()); return 0; } -- cgit