Skip to content

Commit 63ff79d

Browse files
committed
1 parent b9b239d commit 63ff79d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

config.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ AC_DEFUN([AC_SWOOLE_HAVE_UCONTEXT],
149149
[
150150
AC_MSG_CHECKING([for ucontext])
151151
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
152+
#define _XOPEN_SOURCE
152153
#include <stdio.h>
153154
#include <ucontext.h>
154155
#include <unistd.h>

include/swoole_coroutine_context.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <mutex>
2525
#elif !defined(SW_USE_ASM_CONTEXT)
2626
#define USE_UCONTEXT 1
27+
#define _XOPEN_SOURCE
2728
#include <ucontext.h>
2829
#else
2930
#define USE_ASM_CONTEXT 1

0 commit comments

Comments
 (0)