diff options
| author | Roy Marples <roy@marples.name> | 2017-10-05 14:34:05 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2017-10-05 14:34:05 +0100 |
| commit | 208b6838cbaea0d565df79b4796f887255a72818 (patch) | |
| tree | af4ec931d444305bf6ed7323f08fc91e3b295ebe /compat | |
| parent | 9f7432448fb2bcc36a638bf8b9d13227f62c0fe7 (diff) | |
| download | dhcpcd-208b6838cbaea0d565df79b4796f887255a72818.tar.xz | |
Supply __arraycount if not present.
Diffstat (limited to 'compat')
| -rw-r--r-- | compat/crypt/hmac.c | 4 |
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> |
