diff options
| author | cegger <cegger@NetBSD.org> | 2009-01-24 13:06:16 +0000 |
|---|---|---|
| committer | cegger <cegger@NetBSD.org> | 2009-01-24 13:06:16 +0000 |
| commit | 9fde1a673ebd469968393da75bf4361cfd4e6aac (patch) | |
| tree | 309168ce22768ac0d682d1c61f7b475855429fc8 /usr.bin/make/make_malloc.c | |
| parent | 6942778bea203f83555d0423c77b7505853144e9 (diff) | |
buildfixes for OSX:
- include <sys/types> for size_t
- progname is undeclared
- include <string.h> for string functions like strlen()
- include <errno.h> for errno
Diffstat (limited to 'usr.bin/make/make_malloc.c')
| -rw-r--r-- | usr.bin/make/make_malloc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/make/make_malloc.c b/usr.bin/make/make_malloc.c index aba68f9f7e5..0276111c7a7 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.1 2009/01/24 11:59:39 dsl Exp $ */ +/* $NetBSD: make_malloc.c,v 1.2 2009/01/24 13:06:16 cegger Exp $ */ /*- * Copyright (c) 2009 The NetBSD Foundation, Inc. @@ -27,11 +27,13 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: make_malloc.c,v 1.1 2009/01/24 11:59:39 dsl Exp $"); +__RCSID("$NetBSD: make_malloc.c,v 1.2 2009/01/24 13:06:16 cegger Exp $"); #include <sys/types.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> +#include <errno.h> #ifndef USE_EMALLOC /* @@ -41,7 +43,7 @@ __RCSID("$NetBSD: make_malloc.c,v 1.1 2009/01/24 11:59:39 dsl Exp $"); static void enomem(void) { - (void)fprintf(stderr, "%s: %s.\n", progname, strerror(errno)); + (void)fprintf(stderr, "%s.\n", strerror(errno)); exit(2); } |
