--- mariadb-10.6.16/include/mysql/service_encryption.h.orig
+++ mariadb-10.6.16/include/mysql/service_encryption.h
@@ -36,6 +36,7 @@
 #ifdef __cplusplus
 extern "C" {
 #endif
+#include <alloca.h>
 
 /* returned from encryption_key_get_latest_version() */
 #define ENCRYPTION_KEY_VERSION_INVALID        (~(unsigned int)0)