summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpkubaj <pkubaj@users.noreply.github.com>2019-10-09 12:01:19 +0200
committerSergey Vojtovich <svoj@mariadb.org>2019-11-02 18:25:12 +0400
commiteb56339b6656da991aa2e25de4d6f655f0bbe213 (patch)
tree4d23d84c287714452766d4079e2de81a34b683e3
parent8afe4bba2ecd9ebc762a80598a8465a201d4feee (diff)
downloadmariadb-git-eb56339b6656da991aa2e25de4d6f655f0bbe213.tar.gz
Fix build on !glibc/powerpc*
Do the same that newer branches do and don't include glibc-related headers on non-glibc environment.
-rw-r--r--storage/xtradb/include/ut0ut.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/xtradb/include/ut0ut.h b/storage/xtradb/include/ut0ut.h
index 2dd79155770..de8be1774c3 100644
--- a/storage/xtradb/include/ut0ut.h
+++ b/storage/xtradb/include/ut0ut.h
@@ -83,7 +83,7 @@ private:
the YieldProcessor macro defined in WinNT.h. It is a CPU architecture-
independent way by using YieldProcessor. */
# define UT_RELAX_CPU() YieldProcessor()
-# elif defined(__powerpc__)
+# elif defined(__powerpc__) && defined __GLIBC__
#include <sys/platform/ppc.h>
# define UT_RELAX_CPU() __ppc_get_timebase()
# else