mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
Add howmany() macro since some systems have this in sys/param.h
which we no longer include.
This commit is contained in:
parent
652d0de98a
commit
a449e8b3e7
@ -149,6 +149,13 @@
|
||||
# define MAX(a,b) (((a)>(b))?(a):(b))
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Some systems define this in <sys/param.h> 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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user