Commit b31926f4 authored by vasil's avatar vasil

branches/zip:

Explicitly include os0sync.h to the places where HAVE_ATOMIC_BUILTINS and
INNODB_RW_LOCKS_USE_ATOMICS are used to avoid potential problems.
parent 7a191dc3
...@@ -34,6 +34,9 @@ Created 1/20/1994 Heikki Tuuri ...@@ -34,6 +34,9 @@ Created 1/20/1994 Heikki Tuuri
#define ut0ut_h #define ut0ut_h
#include "univ.i" #include "univ.i"
#include "os0sync.h" /* for HAVE_ATOMIC_BUILTINS */
#include <time.h> #include <time.h>
#ifndef MYSQL_SERVER #ifndef MYSQL_SERVER
#include <ctype.h> #include <ctype.h>
...@@ -47,7 +50,7 @@ Created 1/20/1994 Heikki Tuuri ...@@ -47,7 +50,7 @@ Created 1/20/1994 Heikki Tuuri
/** Time stamp */ /** Time stamp */
typedef time_t ib_time_t; typedef time_t ib_time_t;
#if defined(IB_HAVE_PAUSE_INSTRUCTION) #if defined(HAVE_IB_PAUSE_INSTRUCTION)
# ifdef WIN32 # ifdef WIN32
/* In the Win32 API, the x86 PAUSE instruction is executed by calling /* In the Win32 API, the x86 PAUSE instruction is executed by calling
the YieldProcessor macro defined in WinNT.h. It is a CPU architecture- the YieldProcessor macro defined in WinNT.h. It is a CPU architecture-
......
...@@ -102,6 +102,7 @@ Created 10/8/1995 Heikki Tuuri ...@@ -102,6 +102,7 @@ Created 10/8/1995 Heikki Tuuri
#include "row0mysql.h" #include "row0mysql.h"
#include "ha_prototypes.h" #include "ha_prototypes.h"
#include "trx0i_s.h" #include "trx0i_s.h"
#include "os0sync.h" /* for HAVE_ATOMIC_BUILTINS */
/* This is set to TRUE if the MySQL user has set it in MySQL; currently /* This is set to TRUE if the MySQL user has set it in MySQL; currently
affects only FOREIGN KEY definition parsing */ affects only FOREIGN KEY definition parsing */
......
...@@ -103,6 +103,7 @@ Created 2/16/1996 Heikki Tuuri ...@@ -103,6 +103,7 @@ Created 2/16/1996 Heikki Tuuri
# include "row0row.h" # include "row0row.h"
# include "row0mysql.h" # include "row0mysql.h"
# include "btr0pcur.h" # include "btr0pcur.h"
# include "os0sync.h" /* for INNODB_RW_LOCKS_USE_ATOMICS */
/** Log sequence number immediately after startup */ /** Log sequence number immediately after startup */
UNIV_INTERN ib_uint64_t srv_start_lsn; UNIV_INTERN ib_uint64_t srv_start_lsn;
......
...@@ -38,6 +38,7 @@ Created 9/11/1995 Heikki Tuuri ...@@ -38,6 +38,7 @@ Created 9/11/1995 Heikki Tuuri
#include "os0thread.h" #include "os0thread.h"
#include "mem0mem.h" #include "mem0mem.h"
#include "srv0srv.h" #include "srv0srv.h"
#include "os0sync.h" /* for INNODB_RW_LOCKS_USE_ATOMICS */
/* /*
IMPLEMENTATION OF THE RW_LOCK IMPLEMENTATION OF THE RW_LOCK
......
...@@ -39,6 +39,7 @@ Created 9/5/1995 Heikki Tuuri ...@@ -39,6 +39,7 @@ Created 9/5/1995 Heikki Tuuri
#include "buf0buf.h" #include "buf0buf.h"
#include "srv0srv.h" #include "srv0srv.h"
#include "buf0types.h" #include "buf0types.h"
#include "os0sync.h" /* for HAVE_ATOMIC_BUILTINS */
/* /*
REASONS FOR IMPLEMENTING THE SPIN LOCK MUTEX REASONS FOR IMPLEMENTING THE SPIN LOCK 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