summaryrefslogtreecommitdiff
path: root/ext/pcntl/php_pcntl.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pcntl/php_pcntl.h')
-rw-r--r--ext/pcntl/php_pcntl.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/pcntl/php_pcntl.h b/ext/pcntl/php_pcntl.h
index 347c77f275..7154dcd4de 100644
--- a/ext/pcntl/php_pcntl.h
+++ b/ext/pcntl/php_pcntl.h
@@ -63,13 +63,10 @@ ZEND_BEGIN_MODULE_GLOBALS(pcntl)
int signal_queue_ready;
int processing_signal_queue;
ZEND_END_MODULE_GLOBALS(pcntl)
-
#ifdef ZTS
-#define PCNTL_G(v) (pcntl_globals->v)
-#define PCNTL_LS_FETCH() zend_pcntl_globals *pcntl_globals = ts_resource(pcntl_globals_id)
+# define PCNTL_G(v) TSRMG(pcntl_globals_id, zend_pcntl_globals *, v)
#else
-#define PCNTL_G(v) (pcntl_globals.v)
-#define PCNTL_LS_FETCH()
+# define PCNTL_G(v) (pcntl_globals.v)
#endif
#endif /* PHP_PCNTL_H */