File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -327,6 +327,14 @@ char *alloca();
327
327
# define HAVE_BUILTIN_CONSTANT_P
328
328
#endif
329
329
330
+ #if __has_attribute(element_count)
331
+ #define ZEND_ELEMENT_COUNT (m ) __attribute__((element_count(m)))
332
+ #elif __has_attribute(counted_by)
333
+ #define ZEND_ELEMENT_COUNT (m ) __attribute__((counted_by(m)))
334
+ #else
335
+ #define ZEND_ELEMENT_COUNT (m )
336
+ #endif
337
+
330
338
#ifdef HAVE_BUILTIN_CONSTANT_P
331
339
# define ZEND_CONST_COND (_condition, _default ) \
332
340
(__builtin_constant_p(_condition) ? (_condition) : (_default))
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ struct fpm_scoreboard_s {
67
67
int free_proc ;
68
68
unsigned long int slow_rq ;
69
69
struct fpm_scoreboard_s * shared ;
70
- struct fpm_scoreboard_proc_s procs [];
70
+ struct fpm_scoreboard_proc_s procs [] ZEND_ELEMENT_COUNT ( nprocs ) ;
71
71
};
72
72
73
73
int fpm_scoreboard_init_main (void );
You can’t perform that action at this time.
0 commit comments