Commit 4b3cf4aa authored by Sergei Golubchik's avatar Sergei Golubchik

XtraDB compilation failures on Windows (again)

parent d85fac98
......@@ -30,6 +30,13 @@ Database log
Created 12/9/1995 Heikki Tuuri
*******************************************************/
#include "config.h"
#ifdef HAVE_ALLOCA_H
#include "alloca.h"
#elif defined(HAVE_MALLOC_H)
#include "malloc.h"
#endif
#include "log0log.h"
#ifdef UNIV_NONINL
......@@ -246,7 +253,7 @@ log_buffer_extend(
{
ulint move_start;
ulint move_end;
byte tmp_buf[OS_FILE_LOG_BLOCK_SIZE];
byte *tmp_buf = (byte*)alloca(OS_FILE_LOG_BLOCK_SIZE);
mutex_enter(&(log_sys->mutex));
......
......@@ -34,14 +34,6 @@ Online database log parsing for changed page tracking
#include "trx0sys.h"
#include "ut0rbt.h"
#ifdef __WIN__
/* error LNK2001: unresolved external symbol _debug_sync_C_callback_ptr */
# define DEBUG_SYNC_C(dummy) ((void) 0)
#else
# include "m_string.h" /* for my_sys.h */
# include "my_sys.h" /* DEBUG_SYNC_C */
#endif
enum { FOLLOW_SCAN_SIZE = 4 * (UNIV_PAGE_SIZE_MAX) };
#ifdef UNIV_PFS_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