summaryrefslogtreecommitdiff
path: root/win32/wsyslog.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/wsyslog.c')
-rw-r--r--win32/wsyslog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/wsyslog.c b/win32/wsyslog.c
index 89f98e5224..75c5ef58e5 100644
--- a/win32/wsyslog.c
+++ b/win32/wsyslog.c
@@ -61,6 +61,7 @@
void closelog(void)
{
+ TSRMLS_FETCH();
if (PW32G(log_source)) {
DeregisterEventSource(PW32G(log_source));
PW32G(log_source) = NULL;
@@ -84,6 +85,7 @@ void syslog(int priority, const char *message, ...)
unsigned short etype;
char *tmp = NULL;
DWORD evid;
+ TSRMLS_FETCH();
/* default event source */
if (!PW32G(log_source))
@@ -121,6 +123,8 @@ void syslog(int priority, const char *message, ...)
void openlog(const char *ident, int logopt, int facility)
{
+ TSRMLS_FETCH();
+
if (PW32G(log_source)) {
closelog();
}