summaryrefslogtreecommitdiff
path: root/cleanup.c
diff options
context:
space:
mode:
authorbje <bje>1998-09-12 07:59:34 +0000
committerbje <bje>1998-09-12 07:59:34 +0000
commitb63e40988fde13ccd11dea845bd9008c56b21cdb (patch)
treee2db70ba088ec35c71c59781551775c4847ac0f0 /cleanup.c
parentbebf4fe4f6ae3d8296a6b9144876d08e5de2261a (diff)
1998-09-12 Ben Elliston <bje@cygnus.com>
* {most}.c: Include <errno.h> 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.
Diffstat (limited to 'cleanup.c')
-rw-r--r--cleanup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cleanup.c b/cleanup.c
index 472b7c6..7a7ea4e 100644
--- a/cleanup.c
+++ b/cleanup.c
@@ -6,6 +6,8 @@
* threads.
*/
+#include <errno.h>
+
#include <malloc.h>
#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;