From d52c8f30e0b4730115ed1cd0cdf36637aca7fef7 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Sun, 19 May 2024 11:33:33 -0700 Subject: [PATCH] Include stddef in zmalloc.h (#516) zmalloc.h uses size_t, which requires stddef. It seems like all the previous code paths were properly including it except for ASAN, which uses libc malloc and skips the special mac only malloc inclusions. Example failure: https://github.com/valkey-io/valkey/actions/runs/9143545732/job/25140329029 See https://github.com/valkey-io/valkey/actions/runs/9149533754/job/25153263875. Signed-off-by: Madelyn Olson --- src/zmalloc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zmalloc.h b/src/zmalloc.h index 559d27ac2b..8fa150147d 100644 --- a/src/zmalloc.h +++ b/src/zmalloc.h @@ -31,6 +31,8 @@ #ifndef __ZMALLOC_H #define __ZMALLOC_H +#include + /* Double expansion needed for stringification of macro values. */ #define __xstr(s) __str(s) #define __str(s) #s