diff options
| author | dsl <dsl@NetBSD.org> | 2009-01-24 14:43:28 +0000 |
|---|---|---|
| committer | dsl <dsl@NetBSD.org> | 2009-01-24 14:43:28 +0000 |
| commit | 97347d2cbb7aaa7bc4aad3a1c79c7faf1f99222e (patch) | |
| tree | 65214a5320cc034a21d47a7b9436072d94a71f59 /usr.bin/make/make_malloc.c | |
| parent | 7c83fa3718c062ce66ba9a85bc613c6fac218e34 (diff) | |
Fixes to includes of make_malloc.h to that it actually builds when
USE_EMALLOC is undefined.
Fixes earlier fixes :-)
Diffstat (limited to 'usr.bin/make/make_malloc.c')
| -rw-r--r-- | usr.bin/make/make_malloc.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.bin/make/make_malloc.c b/usr.bin/make/make_malloc.c index 0276111c7a7..4f240479551 100644 --- a/usr.bin/make/make_malloc.c +++ b/usr.bin/make/make_malloc.c @@ -1,4 +1,4 @@ -/* $NetBSD: make_malloc.c,v 1.2 2009/01/24 13:06:16 cegger Exp $ */ +/* $NetBSD: make_malloc.c,v 1.3 2009/01/24 14:43:28 dsl Exp $ */ /*- * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -27,14 +27,15 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: make_malloc.c,v 1.2 2009/01/24 13:06:16 cegger Exp $"); +__RCSID("$NetBSD: make_malloc.c,v 1.3 2009/01/24 14:43:28 dsl Exp $"); -#include <sys/types.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> +#include "make_malloc.h" + #ifndef USE_EMALLOC /* * enomem -- @@ -43,7 +44,9 @@ __RCSID("$NetBSD: make_malloc.c,v 1.2 2009/01/24 13:06:16 cegger Exp $"); static void enomem(void) { - (void)fprintf(stderr, "%s.\n", strerror(errno)); + extern char *progname; + + (void)fprintf(stderr, "%s: %s.\n", progname, strerror(errno)); exit(2); } |
