Skip to content

Commit f5c080c

Browse files
committed
MDEV-19845: Fix the build on some platforms
On some platforms, MY_RELAX_CPU() falls back to an atomic memory operation, but my_cpu.h fails to include my_atomic.h.
1 parent 0b7fa5a commit f5c080c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

mysys/my_cpu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
1515

1616
#include <my_global.h>
17+
#include <my_atomic.h>
1718
#include <my_cpu.h>
1819

1920
#ifdef HAVE_PAUSE_INSTRUCTION

storage/innobase/include/ib0mutex.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Created 2013-03-26 Sunny Bains.
2929
#ifndef ib0mutex_h
3030
#define ib0mutex_h
3131

32+
#include "my_atomic.h"
3233
#include "my_cpu.h"
3334
#include "os0event.h"
3435
#include "sync0arr.h"

0 commit comments

Comments
 (0)