summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-06-27 14:58:43 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-06-27 15:04:00 +0300
commitf5c080c7353cc9c30d0b269c07024cd38253c3bc (patch)
treec5d8fc4b6e830b4177b4ef5a3e05a0efed496724 /mysys
parent0b7fa5a05deecaf52207f00bb02b5c6b460abb11 (diff)
downloadmariadb-git-f5c080c7353cc9c30d0b269c07024cd38253c3bc.tar.gz
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.
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mysys/my_cpu.c b/mysys/my_cpu.c
index dd8ff4b6a02..9434bceac41 100644
--- a/mysys/my_cpu.c
+++ b/mysys/my_cpu.c
@@ -14,6 +14,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
#include <my_global.h>
+#include <my_atomic.h>
#include <my_cpu.h>
#ifdef HAVE_PAUSE_INSTRUCTION