diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ebtables_u.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ebtables_u.h b/include/ebtables_u.h index 006e2dd..dc922dc 100644 --- a/include/ebtables_u.h +++ b/include/ebtables_u.h @@ -377,4 +377,8 @@ extern int ebt_printstyle_mac; #define PROC_SYS_MODPROBE "/proc/sys/kernel/modprobe" #endif #define ATOMIC_ENV_VARIABLE "EBTABLES_ATOMIC_FILE" + +#ifndef ARRAY_SIZE +# define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) +#endif #endif /* EBTABLES_U_H */ |