diff options
| author | cgd <cgd@NetBSD.org> | 1995-04-29 05:32:40 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 1995-04-29 05:32:40 +0000 |
| commit | a12c29d63c93eb5229220c752df52aee60ac7507 (patch) | |
| tree | f1ed8132f6aafc68fb5c28ba5a1c0ae5160615d9 /gnu/lib/libmalloc | |
| parent | 62ee06084006b39fc0882fd9991158133a6cff1d (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.h | 4 |
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. */ |
