From b63e40988fde13ccd11dea845bd9008c56b21cdb Mon Sep 17 00:00:00 2001 From: bje Date: Sat, 12 Sep 1998 07:59:34 +0000 Subject: 1998-09-12 Ben Elliston * {most}.c: Include to get POSIX error values. * signal.c (pthread_sigmask): Only provide if HAVE_SIGSET_T is defined. * config.h: #undef features, don't #define them. This will be generated by autoconf very soon. --- cleanup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cleanup.c') diff --git a/cleanup.c b/cleanup.c index 472b7c6..7a7ea4e 100644 --- a/cleanup.c +++ b/cleanup.c @@ -6,6 +6,8 @@ * threads. */ +#include + #include #include "pthread.h" #include "implement.h" @@ -29,7 +31,7 @@ _pthread_handler_push(int stack, if (new_thread == NULL) { - return ENOMEM; + return 0; /* NOMEM */ } new_thread->routine = routine; -- cgit v1.2.3