diff options
Diffstat (limited to 'include/libmnl/libmnl.h')
-rw-r--r-- | include/libmnl/libmnl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h index dc4d3dd..5b8d78c 100644 --- a/include/libmnl/libmnl.h +++ b/include/libmnl/libmnl.h @@ -164,6 +164,10 @@ extern int mnl_cb_run2(const void *buf, size_t numbytes, unsigned int seq, #define SOL_NETLINK 270 #endif +#ifndef MNL_ARRAY_SIZE +#define MNL_ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0])) +#endif + #ifdef __cplusplus } /* extern "C" */ #endif |