From 6465c5eb475f75a6a626fe007bc346fafa7ca43d Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 9 Sep 1998 00:45:17 +0000 Subject: [PATCH] add howmany macro --- compat.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compat.h b/compat.h index 4a7781503..8119c33c9 100644 --- a/compat.h +++ b/compat.h @@ -84,6 +84,13 @@ # define S_IRWXU 0000700 /* rwx for owner */ #endif /* S_IRWXU */ +/* + * Some OS's may not have this. + */ +#ifndef howmany +#define howmany(x, y) (((x) + ((y) - 1)) / (y)) +#endif + /* * We need to know how long the longest password may be. * For alternate password schemes we need longer passwords.