diff options
Diffstat (limited to 'kern/work.c')
-rw-r--r-- | kern/work.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/work.c b/kern/work.c index d4969619..6151ba48 100644 --- a/kern/work.c +++ b/kern/work.c @@ -16,6 +16,7 @@ */ #include <assert.h> +#include <errno.h> #include <stdalign.h> #include <stddef.h> #include <stdio.h> @@ -414,7 +415,7 @@ work_thread_create(struct work_pool *pool, unsigned int id) worker = kmem_cache_alloc(&work_thread_cache); if (worker == NULL) { - return ERROR_NOMEM; + return ENOMEM; } worker->pool = pool; |