summaryrefslogtreecommitdiff
path: root/lib/csu
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-05-07 19:30:54 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-05-07 19:30:54 +0000
commitbf37253a5d69e1706f6287e376376ce7d0050965 (patch)
tree724ed399721200c1e749c052eebc372f991aa6a3 /lib/csu
parent53b6a816b5e1968f5e2fdfde9f60156e3a0309db (diff)
Declare moncontrol(3) APIs in <sys/gmon.h>
Export _gmonparam again. Make gcrt0.o use an reserved name for _monstartup() ok millert@
Diffstat (limited to 'lib/csu')
-rw-r--r--lib/csu/crt0.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/csu/crt0.c b/lib/csu/crt0.c
index 3b82f6a323e..64ec4dbdef0 100644
--- a/lib/csu/crt0.c
+++ b/lib/csu/crt0.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crt0.c,v 1.6 2016/03/20 02:32:39 guenther Exp $ */
+/* $OpenBSD: crt0.c,v 1.7 2016/05/07 19:30:53 guenther Exp $ */
/*
* Copyright (c) 1995 Christopher G. Demetriou
@@ -55,8 +55,7 @@ static void ___start(MD_START_ARGS) __used;
char ***_csu_finish(char **_argv, char **_envp, void (*_cleanup)(void));
#ifdef MCRT0
-extern void monstartup(u_long, u_long);
-extern void _mcleanup(void);
+#include <sys/gmon.h>
extern unsigned char _etext, _eprol;
#endif /* MCRT0 */
@@ -86,7 +85,7 @@ MD_START(MD_START_ARGS)
#ifdef MCRT0
atexit(_mcleanup);
- monstartup((u_long)&_eprol, (u_long)&_etext);
+ _monstartup((u_long)&_eprol, (u_long)&_etext);
#endif
__init();