From 63dd5b520f4e0ad42df07e66779dc70b7b6f0037 Mon Sep 17 00:00:00 2001 From: bde Date: Fri, 10 Jul 1998 02:27:16 +0000 Subject: Added a kernel-only typedef (ptrint_t) giving an integral type that is least unsuitable for holding an object pointer. This should have been used to fix warnings about casts between pointers and ints on alphas. Moved corresponding existing general typedef (fptrint_t) for function pointers from the i386 to a kernel-only typedef in . Kludged libc/gmon/mcount.c so that it can still see this typedef. --- lib/libc/gmon/mcount.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/gmon/mcount.c b/lib/libc/gmon/mcount.c index 18633c3..aa8f552 100644 --- a/lib/libc/gmon/mcount.c +++ b/lib/libc/gmon/mcount.c @@ -36,11 +36,20 @@ static char sccsid[] = "@(#)mcount.c 8.1 (Berkeley) 6/4/93"; #endif static const char rcsid[] = - "$Id: mcount.c,v 1.9 1997/02/22 14:58:27 peter Exp $"; + "$Id: mcount.c,v 1.10 1998/03/09 04:42:19 jb Exp $"; #endif #ifndef __NETBSD_SYSCALLS + +#ifdef KERNEL +#include +#else +/* Kludge to get fptrint_t declared. */ +#define KERNEL #include +#undef KERNEL +#endif + #include #ifdef KERNEL #include @@ -325,4 +334,4 @@ mexitcount(selfpc) } #endif /* GUPROF */ -#endif +#endif /* !__NETBSD_SYSCALLS */ -- cgit v1.1