summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-09-14 14:17:10 +0000
committerguenther <guenther@openbsd.org>2015-09-14 14:17:10 +0000
commitcbc0cb7478a4d52269c1cb6b48d259163e33f172 (patch)
tree3846445601b06b169a32bbc61ca13bc4b39e05c6
parentin the SYNOPSIS, make void function arguments explicit (diff)
downloadwireguard-openbsd-cbc0cb7478a4d52269c1cb6b48d259163e33f172.tar.xz
wireguard-openbsd-cbc0cb7478a4d52269c1cb6b48d259163e33f172.zip
Wrap moncontrol() so that internal calls go direct and it's a weak symbol
-rw-r--r--lib/libc/gmon/gmon.c4
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