mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Fix undefined symbol pthread_attr_get_np on Solaris (#13358)
Solaris doesn't have pthread_attr_get_np(). Checked on Oracle Solaris 11.4.
This commit is contained in:
@@ -664,6 +664,7 @@ static bool zend_call_stack_get_netbsd(zend_call_stack *stack)
|
||||
#endif /* defined(__NetBSD__) */
|
||||
|
||||
#if defined(__sun)
|
||||
# if defined(HAVE_PTHREAD_ATTR_GET_NP) && defined(HAVE_PTHREAD_ATTR_GETSTACK)
|
||||
static bool zend_call_stack_get_solaris_pthread(zend_call_stack *stack)
|
||||
{
|
||||
pthread_attr_t attr;
|
||||
@@ -694,6 +695,12 @@ static bool zend_call_stack_get_solaris_pthread(zend_call_stack *stack)
|
||||
|
||||
return true;
|
||||
}
|
||||
# else /* defined(HAVE_PTHREAD_ATTR_GET_NP) && defined(HAVE_PTHREAD_ATTR_GETSTACK) */
|
||||
static bool zend_call_stack_get_solaris_pthread(zend_call_stack *stack)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
# endif /* defined(HAVE_PTHREAD_ATTR_GET_NP) && defined(HAVE_PTHREAD_ATTR_GETSTACK) */
|
||||
|
||||
static bool zend_call_stack_get_solaris_proc_maps(zend_call_stack *stack)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user