Commit 5f25a911 authored by Brad Smith's avatar Brad Smith Committed by GitHub

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

parent e0b4db5b
...@@ -34,12 +34,13 @@ extern "C" { ...@@ -34,12 +34,13 @@ extern "C" {
#ifndef __cplusplus #ifndef __cplusplus
#define inline __inline #define inline __inline
#endif #endif
#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
#include <stdlib.h>
#else #else
#include <stdlib.h>
#ifdef HAVE_ALLOCA_H
#include <alloca.h> #include <alloca.h>
#endif #endif
#endif #endif
#endif
/* returned from encryption_key_get_latest_version() */ /* returned from encryption_key_get_latest_version() */
#define ENCRYPTION_KEY_VERSION_INVALID (~(unsigned int)0) #define ENCRYPTION_KEY_VERSION_INVALID (~(unsigned int)0)
......
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
#include <my_global.h>
#include <mysql/plugin_password_validation.h> #include <mysql/plugin_password_validation.h>
#include <crack.h> #include <crack.h>
#include <string.h> #include <string.h>
#include <alloca.h>
#include <mysqld_error.h> #include <mysqld_error.h>
static char *dictionary; static char *dictionary;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment