Skip to content
Permalink
Browse files
Cleanup the alloca.h header handling to further reduce hardcoded OS l…
…ists (#2289)
  • Loading branch information
brad0 committed Oct 16, 2022
1 parent e0b4db5 commit 5f25a91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
@@ -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)
@@ -13,10 +13,10 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */

#include <my_global.h>
#include <mysql/plugin_password_validation.h>
#include <crack.h>
#include <string.h>
#include <alloca.h>
#include <mysqld_error.h>

static char *dictionary;

0 comments on commit 5f25a91

Please sign in to comment.