XtraDB compilation failures on Windows (again)

This commit is contained in:
Sergei Golubchik 2014-02-28 21:04:58 +01:00
parent d85fac98bb
commit 4b3cf4aa26
2 changed files with 8 additions and 9 deletions

View file

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

View file

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