aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gmon
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-07-10 02:27:16 +0000
committerBruce Evans <bde@FreeBSD.org>1998-07-10 02:27:16 +0000
commit2e480d34aaabcd405e72ff80866451e8c3b08c08 (patch)
tree42debb467f1f9ffcad43a252efb81d84fb61db3d /lib/libc/gmon
parentf763857cffe9dbe1a3486de1191ed10acf2f1138 (diff)
downloadsrc-2e480d34aaabcd405e72ff80866451e8c3b08c08.tar.gz
src-2e480d34aaabcd405e72ff80866451e8c3b08c08.zip
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.
Notes
Notes: svn path=/head/; revision=37540
Diffstat (limited to 'lib/libc/gmon')
-rw-r--r--lib/libc/gmon/mcount.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/libc/gmon/mcount.c b/lib/libc/gmon/mcount.c
index 18633c3dd6f6..aa8f552f4b5a 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 */