summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrad Smith <brad@comstyle.com>2022-10-16 13:44:51 -0400
committerGitHub <noreply@github.com>2022-10-16 18:44:51 +0100
commit5f25a9114051b078696813628c37add0e15d88f2 (patch)
tree916acecef4518dad9bf044d372ad82d7e986182b /include
parente0b4db5ba3d1fb14a1ec9e4ab0b346c6a8eebfd6 (diff)
downloadmariadb-git-5f25a9114051b078696813628c37add0e15d88f2.tar.gz
Cleanup the alloca.h header handling to further reduce hardcoded OS lists (#2289)
Diffstat (limited to 'include')
-rw-r--r--include/mysql/service_encryption.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/mysql/service_encryption.h b/include/mysql/service_encryption.h
index a4e908f9aff..69d205a27e8 100644
--- a/include/mysql/service_encryption.h
+++ b/include/mysql/service_encryption.h
@@ -34,12 +34,13 @@ extern "C" {
#ifndef __cplusplus
#define inline __inline
#endif
-#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
-#include <stdlib.h>
#else
+#include <stdlib.h>
+#ifdef HAVE_ALLOCA_H
#include <alloca.h>
#endif
#endif
+#endif
/* returned from encryption_key_get_latest_version() */
#define ENCRYPTION_KEY_VERSION_INVALID (~(unsigned int)0)