summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2017-10-05 14:34:05 +0100
committerRoy Marples <roy@marples.name>2017-10-05 14:34:05 +0100
commit208b6838cbaea0d565df79b4796f887255a72818 (patch)
treeaf4ec931d444305bf6ed7323f08fc91e3b295ebe /compat
parent9f7432448fb2bcc36a638bf8b9d13227f62c0fe7 (diff)
downloaddhcpcd-208b6838cbaea0d565df79b4796f887255a72818.tar.xz
Supply __arraycount if not present.
Diffstat (limited to 'compat')
-rw-r--r--compat/crypt/hmac.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/compat/crypt/hmac.c b/compat/crypt/hmac.c
index 7e762326..52f38544 100644
--- a/compat/crypt/hmac.c
+++ b/compat/crypt/hmac.c
@@ -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>