changeset 4153:4316efdaceae draft

Supply __arraycount if not present.
author Roy Marples <roy@marples.name>
date Thu, 05 Oct 2017 14:34:05 +0100
parents 45cfa30f7b2b
children 3fa6421d2b43
files compat/crypt/hmac.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/compat/crypt/hmac.c	Thu Oct 05 14:33:48 2017 +0100
+++ b/compat/crypt/hmac.c	Thu Oct 05 14:34:05 2017 +0100
@@ -44,6 +44,10 @@
 #  include SHA2_H
 #endif
 
+#ifndef __arraycount
+#  define __arraycount(__x)       (sizeof(__x) / sizeof(__x[0]))
+#endif
+
 #if 0
 #include <md2.h>
 #include <md4.h>