From a449e8b3e736f8e9f89493991e848c99298d4759 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 20 Dec 2012 14:46:45 -0500 Subject: [PATCH] Add howmany() macro since some systems have this in sys/param.h which we no longer include. --- include/missing.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/missing.h b/include/missing.h index a060b7cc8..8276065cf 100644 --- a/include/missing.h +++ b/include/missing.h @@ -149,6 +149,13 @@ # define MAX(a,b) (((a)>(b))?(a):(b)) #endif +/* + * Some systems define this in but we don't include that anymore. + */ +#ifndef howmany +# define howmany(x, y) (((x) + ((y) - 1)) / (y)) +#endif + /* * Older systems may be missing stddef.h and/or offsetof macro */ -- 2.40.0