summaryrefslogtreecommitdiff
path: root/main/SAPI.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/SAPI.c')
-rw-r--r--main/SAPI.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index bb20de383d..aa673429b8 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -75,7 +75,7 @@ SAPI_API void sapi_startup(sapi_module_struct *sf)
sapi_register_post_entries(supported_post_entries);
#ifdef ZTS
- sapi_globals_id = ts_allocate_id(sizeof(sapi_globals_struct), sapi_globals_ctor, NULL);
+ sapi_globals_id = ts_allocate_id(sizeof(sapi_globals_struct), (ts_allocate_ctor) sapi_globals_ctor, NULL);
#else
sapi_globals_ctor(&sapi_globals);
#endif