From e7c9b7517bc91775d23ad7e2840f480494890e4d Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Sun, 20 Apr 2003 02:56:12 +0000 Subject: [PATCH] Fix build breakage (on ia64) caused by a missing file descriptor to _thread_printf(). Use STDERR_FILENO as the file descriptor. --- lib/libthr/thread/thr_create.c | 2 +- lib/libthr/thread/thr_gc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libthr/thread/thr_create.c b/lib/libthr/thread/thr_create.c index 3ad7dc0cdff3..d2ef53808042 100644 --- a/lib/libthr/thread/thr_create.c +++ b/lib/libthr/thread/thr_create.c @@ -187,7 +187,7 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr, ret = thr_create(&new_thread->ctx, &new_thread->thr_id, flags); if (ret != 0) { - _thread_printf("thr_create() == %d\n", ret); + _thread_printf(STDERR_FILENO, "thr_create() == %d\n", ret); PANIC("thr_create"); } diff --git a/lib/libthr/thread/thr_gc.c b/lib/libthr/thread/thr_gc.c index a33acced3f15..e62c50b25ef2 100644 --- a/lib/libthr/thread/thr_gc.c +++ b/lib/libthr/thread/thr_gc.c @@ -178,7 +178,7 @@ _thread_gc(pthread_addr_t arg) */ if ((ret = pthread_cond_timedwait(&_gc_cond, &_gc_mutex, &abstime)) != 0 && ret != ETIMEDOUT) { - _thread_printf("ret = %d", ret); + _thread_printf(STDERR_FILENO, "ret = %d", ret); PANIC("gc cannot wait for a signal"); } }