diff options
Diffstat (limited to 'lib/libspl/include/sys/sysmacros.h')
-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 5d10657be..c2525dd2a 100644 --- a/lib/libspl/include/sys/sysmacros.h +++ b/lib/libspl/include/sys/sysmacros.h @@ -39,6 +39,9 @@ #ifndef ABS #define ABS(a) ((a) < 0 ? -(a) : (a)) #endif +#ifndef ARRAY_SIZE +#define ARRAY_SIZE(a) (sizeof (a) / sizeof (a[0])) +#endif #define makedevice(maj, min) makedev(maj, min) #define _sysconf(a) sysconf(a) |