summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2013-02-12 07:31:14 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2013-02-12 07:31:14 +0000
commit7af426a5b2c56a8f45fc6a4fa8adffb2eab344b4 (patch)
treea4c013956e5176fa146c77a22521fcb30f27418d /lib/libc
parent981c1430adb1e776578996ccbbb97393f34a5dd3 (diff)
Unbreak the tree by adding missing defines. Forgot to sync in previous
spotted by todd@.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gmon/gmon.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/gmon/gmon.c b/lib/libc/gmon/gmon.c
index 01a2e46d14c..13c7a9a4847 100644
--- a/lib/libc/gmon/gmon.c
+++ b/lib/libc/gmon/gmon.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gmon.c,v 1.20 2005/11/20 17:06:06 millert Exp $ */
+/* $OpenBSD: gmon.c,v 1.21 2013/02/12 07:31:13 mpi Exp $ */
/*-
* Copyright (c) 1983, 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -47,6 +47,9 @@ static int s_scale;
/* see profil(2) where this is describe (incorrectly) */
#define SCALE_1_TO_1 0x10000L
+#define ROUNDDOWN(x,y)(((x)/(y))*(y))
+#define ROUNDUP(x,y)((((x)+(y)-1)/(y))*(y))
+
#define ERR(s) write(STDERR_FILENO, s, sizeof(s))
void moncontrol(int);