From 00b065bc805e071d759777c03a231d89c0ee768d Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Tue, 25 Oct 2022 21:44:07 -0500 Subject: [PATCH] cf: Do not redefine realloc() when ASAN is used --- cf/broken-realloc.m4 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cf/broken-realloc.m4 b/cf/broken-realloc.m4 index b6d962ace..f845d7f9c 100644 --- a/cf/broken-realloc.m4 +++ b/cf/broken-realloc.m4 @@ -20,6 +20,8 @@ if test "$ac_cv_func_realloc_broken" = yes ; then AC_DEFINE(BROKEN_REALLOC, 1, [Define if realloc(NULL) doesn't work.]) fi AH_BOTTOM([#ifdef BROKEN_REALLOC +#ifndef realloc #define realloc(X, Y) rk_realloc((X), (Y)) +#endif #endif]) ])