diff options
author | bde <bde@FreeBSD.org> | 1998-07-10 02:27:16 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-07-10 02:27:16 +0000 |
commit | 63dd5b520f4e0ad42df07e66779dc70b7b6f0037 (patch) | |
tree | b085b1c48a46304e71d7a38c26603c94a008178d /lib/libc/gmon | |
parent | 3032208d427abf6412386a421807120d9f6e9c33 (diff) | |
download | FreeBSD-src-63dd5b520f4e0ad42df07e66779dc70b7b6f0037.zip FreeBSD-src-63dd5b520f4e0ad42df07e66779dc70b7b6f0037.tar.gz |
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 <machine/profile.h> to a kernel-only typedef
in <machine/types.h>. Kludged libc/gmon/mcount.c so that it can
still see this typedef.
Diffstat (limited to 'lib/libc/gmon')
-rw-r--r-- | lib/libc/gmon/mcount.c | 13 |
1 files changed, 11 insertions, 2 deletions
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 <sys/param.h> +#else +/* Kludge to get fptrint_t declared. */ +#define KERNEL #include <sys/param.h> +#undef KERNEL +#endif + #include <sys/gmon.h> #ifdef KERNEL #include <sys/systm.h> @@ -325,4 +334,4 @@ mexitcount(selfpc) } #endif /* GUPROF */ -#endif +#endif /* !__NETBSD_SYSCALLS */ |