diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-09-14 14:17:11 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-09-14 14:17:11 +0000 |
commit | f509151e8096df8a9bd4f976da955b82960bd2ca (patch) | |
tree | 5b66d8acb9047a8e3eab08ef978b980cf1f21de9 | |
parent | 6faa3c4a1c457a4e239f593ce8d4f777f4077000 (diff) |
Wrap moncontrol() so that internal calls go direct and it's a weak symbol
-rw-r--r-- | lib/libc/gmon/gmon.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/gmon/gmon.c b/lib/libc/gmon/gmon.c index e790c8d1552..0212259a44a 100644 --- a/lib/libc/gmon/gmon.c +++ b/lib/libc/gmon/gmon.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gmon.c,v 1.24 2015/05/06 23:52:49 jsg Exp $ */ +/* $OpenBSD: gmon.c,v 1.25 2015/09/14 14:17:10 guenther Exp $ */ /*- * Copyright (c) 1983, 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -49,6 +49,7 @@ static int s_scale; #define ERR(s) write(STDERR_FILENO, s, sizeof(s)) void moncontrol(int); +PROTO_NORMAL(moncontrol); static int hertz(void); void monstartup(u_long lowpc, u_long highpc); void _mcleanup(void); @@ -306,6 +307,7 @@ moncontrol(int mode) p->state = GMON_PROF_OFF; } } +DEF_WEAK(moncontrol); /* * discover the tick frequency of the machine |