summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/php/weechat-php.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/php/weechat-php.c b/src/plugins/php/weechat-php.c
index d4f6311f1..8a734799e 100644
--- a/src/plugins/php/weechat-php.c
+++ b/src/plugins/php/weechat-php.c
@@ -1090,8 +1090,15 @@ php_weechat_sapi_error (int type, const char *format, ...)
}
void
+#if PHP_MINOR_VERSION >= 1
+php_weechat_log_message (char *message, int syslog_type_int)
+#else
php_weechat_log_message (char *message)
+#endif
{
+#if PHP_MINOR_VERSION >= 1
+ (void)syslog_type_int;
+#endif
php_weechat_ub_write (message, strlen (message));
}