summaryrefslogtreecommitdiff
path: root/include/my_context.h
diff options
context:
space:
mode:
authorSergei Krivonos <sergeikrivonos@gmail.com>2021-10-06 11:31:08 +0300
committerSergei Krivonos <sergeikrivonos@gmail.com>2021-10-08 17:05:52 +0300
commit164e84c9efb5a7f9fa90989e482ed9e1f49a39dc (patch)
treef68f6924279b1e35c0b5962103756d61c59d969d /include/my_context.h
parentc4a58ca06a82e7fe94603f1d6cbcf1099b48c28d (diff)
downloadmariadb-git-10.2-MDEV-19129.tar.gz
Xcode compatibility update10.2-MDEV-19129
Diffstat (limited to 'include/my_context.h')
-rw-r--r--include/my_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/my_context.h b/include/my_context.h
index ea0e3496887..45d2a7d7ffa 100644
--- a/include/my_context.h
+++ b/include/my_context.h
@@ -52,6 +52,9 @@ struct my_context {
#ifdef MY_CONTEXT_USE_UCONTEXT
+#if defined(__APPLE__) && !defined(_XOPEN_SOURCE)
+#define _XOPEN_SOURCE
+#endif
#include <ucontext.h>
struct my_context {