summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSergei Krivonos <sergeikrivonos@gmail.com>2021-10-06 11:31:08 +0300
committerSergMariaDB <91733807+SergMariaDB@users.noreply.github.com>2021-10-12 18:10:56 -0400
commit6f32b28be511e96d9265ce727aa4a38810b41f96 (patch)
treebe7fc94a7f89216bef6c8f549f13fba5d85fed05 /include
parent8f04ec288528fd53efd98e2139e5d22ba229d20b (diff)
downloadmariadb-git-6f32b28be511e96d9265ce727aa4a38810b41f96.tar.gz
Xcode compatibility update
Diffstat (limited to 'include')
-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 {