From 905f71d80d2d65dd2b7d18bc278b053bf5536ab8 Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 8 Jul 2022 09:05:29 -0700 Subject: [PATCH] Fix with macro redefinition error if building with `NO_WOLFSSL_ALLOC_ALIGN`. --- cyassl/ssl.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cyassl/ssl.h b/cyassl/ssl.h index f907cbdec..721aecee4 100644 --- a/cyassl/ssl.h +++ b/cyassl/ssl.h @@ -700,7 +700,9 @@ * wrapper around macros until they are changed in cyassl code * needs investigation in regards to macros in fips */ -#define NO_WOLFSSL_ALLOC_ALIGN NO_CYASSL_ALLOC_ALIGN /* @TODO */ +#ifdef NO_CYASSL_ALLOC_ALIGN +#define NO_WOLFSSL_ALLOC_ALIGN NO_CYASSL_ALLOC_ALIGN +#endif /* examples/client/client.h */