Commit 3b5f66db authored by Sergei Golubchik's avatar Sergei Golubchik

fix XtraDB to compile on Windows

parent c7a5314c
......@@ -36,6 +36,12 @@ Created 12/9/1995 Heikki Tuuri
#include "log0log.ic"
#endif
#ifdef HAVE_ALLOCA_H
#include "alloca.h"
#elif defined(HAVE_MALLOC_H)
#include "malloc.h"
#endif
#ifndef UNIV_HOTBACKUP
#include "mem0mem.h"
#include "buf0buf.h"
......@@ -273,7 +279,7 @@ log_buffer_extend(
{
ulint move_start;
ulint move_end;
byte tmp_buf[OS_FILE_LOG_BLOCK_SIZE];
byte *tmp_buf=alloca(OS_FILE_LOG_BLOCK_SIZE);
mutex_enter(&(log_sys->mutex));
......
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