File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 35
35
# include <sys/types.h>
36
36
# endif
37
37
#endif /* ZEND_WIN32 */
38
- #if defined(__linux__ ) || defined(__FreeBSD__ ) || defined(__APPLE__ ) || defined(__OpenBSD__ ) || defined(__NetBSD__ )
38
+ #if defined(__linux__ ) || defined(__FreeBSD__ ) || defined(__APPLE__ ) || defined(__OpenBSD__ ) || defined(__NetBSD__ ) || defined( __DragonFly__ )
39
39
# include <pthread.h>
40
40
#endif
41
- #ifdef __FreeBSD__
41
+ #if defined( __FreeBSD__ ) || defined( __DragonFly__ )
42
42
# include <pthread_np.h>
43
43
# include <sys/mman.h>
44
44
# include <sys/sysctl.h>
@@ -251,7 +251,7 @@ static bool zend_call_stack_get_linux(zend_call_stack *stack)
251
251
}
252
252
#endif /* __linux__ */
253
253
254
- #ifdef __FreeBSD__
254
+ #if defined( __FreeBSD__ ) || defined( __DragonFly__ )
255
255
static bool zend_call_stack_is_main_thread (void )
256
256
{
257
257
int is_main = pthread_main_np ();
Original file line number Diff line number Diff line change @@ -76,6 +76,9 @@ static inline size_t zend_call_stack_default_size(void)
76
76
#if defined(__FreeBSD__ ) || defined(__NetBSD__ )
77
77
return 4 * 1024 * 1024 ;
78
78
#endif
79
+ #if defined(__DragonFly__ )
80
+ return 2 * 1024 * 1024 ;
81
+ #endif
79
82
#ifdef __OpenBSD__
80
83
return 512 * 1024 ;
81
84
#endif
You can’t perform that action at this time.
0 commit comments