summaryrefslogtreecommitdiff
path: root/sapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sapi.c')
-rw-r--r--sapi.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/sapi.c b/sapi.c
new file mode 100644
index 0000000000..d04c051727
--- /dev/null
+++ b/sapi.c
@@ -0,0 +1,16 @@
+#include "SAPI.h"
+#include "TSRM.h"
+
+
+#ifdef ZTS
+int sapi_globals_id;
+#endif
+
+
+void sapi_startup()
+{
+#ifdef ZTS
+ sapi_globals_id = ts_allocate_id(sizeof(sapi_globals_struct), NULL, NULL);
+#endif
+}
+