From 58f77491e3016103def9433a91b308d31bab2d60 Mon Sep 17 00:00:00 2001 From: Bruce M Simpson Date: Mon, 14 Jun 2004 18:39:28 +0000 Subject: [PATCH] Add prototypes for the userland gmon support functions, which normally live in src/lib/libc/gmon/gmon.c. glibc puts these prototypes in the same header, so put them here for the sake of consistency. PR: bin/4459 Reviewed by: bde --- sys/sys/gmon.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sys/sys/gmon.h b/sys/sys/gmon.h index 0b2e2352dc0..ac405abb726 100644 --- a/sys/sys/gmon.h +++ b/sys/sys/gmon.h @@ -228,6 +228,15 @@ void mexitcount(uintfptr_t selfpc); void nullfunc(void); void nullfunc_loop(void); +#else /* !_KERNEL */ + +#include + +__BEGIN_DECLS +void moncontrol(int); +void monstartup(u_long, u_long); +__END_DECLS + #endif /* _KERNEL */ #endif /* !_SYS_GMON_H_ */