diff --git a/ext/opcache/zend_shared_alloc.c b/ext/opcache/zend_shared_alloc.c index 8db61ed3f346..c19d72c63b77 100644 --- a/ext/opcache/zend_shared_alloc.c +++ b/ext/opcache/zend_shared_alloc.c @@ -53,7 +53,7 @@ static const zend_shared_memory_handlers *g_shared_alloc_handler = NULL; static const char *g_shared_model; /* pointer to globals allocated in SHM and shared across processes */ -zend_smm_shared_globals *smm_shared_globals; +ZEND_EXT_API zend_smm_shared_globals *smm_shared_globals; #ifndef ZEND_WIN32 #ifdef ZTS diff --git a/ext/opcache/zend_shared_alloc.h b/ext/opcache/zend_shared_alloc.h index 1283351f2e14..41cba0bb3519 100644 --- a/ext/opcache/zend_shared_alloc.h +++ b/ext/opcache/zend_shared_alloc.h @@ -119,7 +119,7 @@ typedef struct _zend_smm_shared_globals { size_t reserved_size; } zend_smm_shared_globals; -extern zend_smm_shared_globals *smm_shared_globals; +ZEND_EXT_API extern zend_smm_shared_globals *smm_shared_globals; #define ZSMMG(element) (smm_shared_globals->element)