File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ if test "$PHP_PCNTL" != "no"; then
7
7
AC_CHECK_FUNCS ( [ fork] , [ ] , [ AC_MSG_ERROR ( [ pcntl: fork() not supported by this platform] ) ] )
8
8
AC_CHECK_FUNCS ( [ waitpid] , [ ] , [ AC_MSG_ERROR ( [ pcntl: waitpid() not supported by this platform] ) ] )
9
9
AC_CHECK_FUNCS ( [ sigaction] , [ ] , [ AC_MSG_ERROR ( [ pcntl: sigaction() not supported by this platform] ) ] )
10
- AC_CHECK_FUNCS ( [ getpriority setpriority wait3 wait4 sigwaitinfo sigtimedwait unshare rfork forkx pidfd_open sched_setaffinity pthread_set_qos_class_self_np] )
10
+ AC_CHECK_FUNCS ( [ getpriority setpriority wait3 wait4 sigwaitinfo sigtimedwait unshare rfork forkx pidfd_open] )
11
+ AC_CHECK_FUNCS ( [ sched_setaffinity pthread_set_qos_class_self_np getcpuid] )
11
12
12
13
dnl if unsupported, -1 means automatically ENOSYS in this context
13
14
AC_MSG_CHECKING ( [ if sched_getcpu is supported] )
Original file line number Diff line number Diff line change @@ -78,6 +78,12 @@ typedef cpuset_t *cpu_set_t;
78
78
#define HAVE_SCHED_SETAFFINITY 1
79
79
#endif
80
80
81
+ #if defined(HAVE_GETCPUID )
82
+ #include <sys/processor.h>
83
+ #define sched_getcpu getcpuid
84
+ #define HAVE_SCHED_GETCPU 1
85
+ #endif
86
+
81
87
#if defined(HAVE_PTHREAD_SET_QOS_CLASS_SELF_NP )
82
88
#include <pthread/qos.h>
83
89
static zend_class_entry * QosClass_ce ;
You can’t perform that action at this time.
0 commit comments