summaryrefslogtreecommitdiff
path: root/gnu/lib/libmalloc
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1995-04-29 05:32:40 +0000
committercgd <cgd@NetBSD.org>1995-04-29 05:32:40 +0000
commita12c29d63c93eb5229220c752df52aee60ac7507 (patch)
treef1ed8132f6aafc68fb5c28ba5a1c0ae5160615d9 /gnu/lib/libmalloc
parent62ee06084006b39fc0882fd9991158133a6cff1d (diff)
if NetBSD, include sys/cdefs.h and don't define __P here.
Diffstat (limited to 'gnu/lib/libmalloc')
-rw-r--r--gnu/lib/libmalloc/malloc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/lib/libmalloc/malloc.h b/gnu/lib/libmalloc/malloc.h
index daf40f2e058..94b89eec732 100644
--- a/gnu/lib/libmalloc/malloc.h
+++ b/gnu/lib/libmalloc/malloc.h
@@ -59,8 +59,12 @@ extern "C"
#endif
#if defined (__cplusplus) || (defined (__STDC__) && __STDC__)
+#ifndef __NetBSD__
#undef __P
#define __P(args) args
+#else
+#include <sys/cdefs.h>
+#endif
#undef __ptr_t
#define __ptr_t void *
#else /* Not C++ or ANSI C. */