diff options
Diffstat (limited to 'lib/libspl')
-rw-r--r-- | lib/libspl/include/sys/sysmacros.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libspl/include/sys/sysmacros.h b/lib/libspl/include/sys/sysmacros.h index c2525dd2a..f99b4d686 100644 --- a/lib/libspl/include/sys/sysmacros.h +++ b/lib/libspl/include/sys/sysmacros.h @@ -42,6 +42,9 @@ #ifndef ARRAY_SIZE #define ARRAY_SIZE(a) (sizeof (a) / sizeof (a[0])) #endif +#ifndef DIV_ROUND_UP +#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) +#endif #define makedevice(maj, min) makedev(maj, min) #define _sysconf(a) sysconf(a) |