summaryrefslogtreecommitdiff
path: root/usr.bin/make/make_malloc.h
diff options
context:
space:
mode:
authorcegger <cegger@NetBSD.org>2009-01-24 13:06:16 +0000
committercegger <cegger@NetBSD.org>2009-01-24 13:06:16 +0000
commit9fde1a673ebd469968393da75bf4361cfd4e6aac (patch)
tree309168ce22768ac0d682d1c61f7b475855429fc8 /usr.bin/make/make_malloc.h
parent6942778bea203f83555d0423c77b7505853144e9 (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.h')
-rw-r--r--usr.bin/make/make_malloc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/make/make_malloc.h b/usr.bin/make/make_malloc.h
index 1b8a3730e32..fe2a7f80393 100644
--- a/usr.bin/make/make_malloc.h
+++ b/usr.bin/make/make_malloc.h
@@ -1,4 +1,4 @@
-/* $NetBSD: make_malloc.h,v 1.2 2009/01/24 12:59:51 cegger Exp $ */
+/* $NetBSD: make_malloc.h,v 1.3 2009/01/24 13:06:16 cegger Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -27,6 +27,8 @@
*/
#ifndef USE_EMALLOC
+#include <sys/types.h>
+
void *bmake_malloc(size_t);
void *bmake_realloc(void *, size_t);
char *bmake_strdup(const char *);