Signed-off-by: Daniel Gröber <dxld@xxxxxxxxxxxxx> --- include/internal/internal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/internal/internal.h b/include/internal/internal.h index 859724b..68c5ef0 100644 --- a/include/internal/internal.h +++ b/include/internal/internal.h @@ -40,6 +40,8 @@ #define IPPROTO_DCCP 33 #endif +#define asizeof(x) (sizeof(x) / sizeof(*x)) + #define BUFFER_SIZE(ret, size, len, offset) \ if(ret < 0) \ return -1; \ -- 2.20.1