1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Cleanup the alloca.h header handling to further reduce hardcoded OS lists (#2289)

This commit is contained in:
Brad Smith
2022-10-16 13:44:51 -04:00
committed by GitHub
parent e0b4db5ba3
commit 5f25a91140
2 changed files with 4 additions and 3 deletions

View File

@@ -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)