Skip to content

Commit 04b9049

Browse files
committed
Merge branch 'PHP-8.1'
* PHP-8.1: Fix zend_fibers.c build with ZEND_FIBER_UCONTEXT
2 parents e4cf3f7 + 069bbf3 commit 04b9049

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Zend/zend_fibers.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
# include <valgrind/valgrind.h>
3333
#endif
3434

35+
#ifdef ZEND_FIBER_UCONTEXT
36+
# include <ucontext.h>
37+
#endif
38+
3539
#ifndef ZEND_WIN32
3640
# include <unistd.h>
3741
# include <sys/mman.h>
@@ -118,7 +122,6 @@ static zend_always_inline void zend_fiber_restore_vm_state(zend_fiber_vm_state *
118122
}
119123

120124
#ifdef ZEND_FIBER_UCONTEXT
121-
# include <ucontext.h>
122125
ZEND_TLS zend_fiber_transfer *transfer_data;
123126
#else
124127
/* boost_context_data is our customized definition of struct transfer_t as

0 commit comments

Comments
 (0)