Skip to content

Commit 5a043c2

Browse files
ffontainedevnexen
authored andcommitted
Zend/zend_call_stack.c: fix build for Linux/uclibc-ng without pthread.
Fix the following build failure without pthread raised since version 8.3.0 and a11c8a3: /home/buildroot/instance-0/output-1/build/php-8.3.4/Zend/zend_call_stack.c:39:11: fatal error: pthread.h: No such file or directory 39 | # include <pthread.h> | ^~~~~~~~~~~ Fixes: - http://autobuild.buildroot.org/results/a4ef648a9da50b26ed56d5d490e4cf5a1bfff970 Signed-off-by: Fabrice Fontaine <[email protected]> Close GH-13843
1 parent b7992d4 commit 5a043c2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.3.6
44

5+
- Core:
6+
. Fixed zend_call_stack build with Linux/uclibc-ng without thread support.
7+
(Fabrice Fontaine)
8+
59
- FPM:
610
. Fixed bug GH-13563 (Setting bool values via env in FPM config fails).
711
(Jakub Zelenka)

Zend/zend_call_stack.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
# include <sys/types.h>
3636
# endif
3737
#endif /* ZEND_WIN32 */
38-
#if defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__) || defined(__OpenBSD__)
38+
#if (defined(HAVE_PTHREAD_GETATTR_NP) && defined(HAVE_PTHREAD_ATTR_GETSTACK)) || \
39+
defined(__FreeBSD__) || defined(__APPLE__) || defined(__OpenBSD__)
3940
# include <pthread.h>
4041
#endif
4142
#ifdef __FreeBSD__

0 commit comments

Comments
 (0)