summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/system.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index 5bc23b32f..74d86bbee 100644
--- a/src/system.h
+++ b/src/system.h
@@ -702,3 +702,7 @@ io_blksize (struct stat sb)
}
void usage (int status) ATTRIBUTE_NORETURN;
+
+#ifndef ARRAY_CARDINALITY
+# define ARRAY_CARDINALITY(Array) (sizeof (Array) / sizeof *(Array))
+#endif