From fff45f6411f1171e39b1a32adea4f4aade0d22fe Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Nahan <814683+macintoshplus@users.noreply.github.com> Date: Tue, 7 Oct 2025 14:19:16 +0200 Subject: [PATCH] Fix PHP 8.5 building --- rrd.c | 6 +++++- rrd_graph.c | 6 +++++- rrd_update.c | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/rrd.c b/rrd.c index 526f094..d70f775 100644 --- a/rrd.c +++ b/rrd.c @@ -12,7 +12,11 @@ #endif #include "php.h" -#include "ext/standard/php_smart_string.h" +#if PHP_VERSION_ID < 70200 +#include +#else +#include +#endif #include "ext/standard/php_array.h" #include "ext/standard/info.h" diff --git a/rrd_graph.c b/rrd_graph.c index 96a47f4..47477a7 100644 --- a/rrd_graph.c +++ b/rrd_graph.c @@ -14,7 +14,11 @@ #include "php.h" #include "zend_exceptions.h" -#include "ext/standard/php_smart_string.h" +#if PHP_VERSION_ID < 70200 +#include +#else +#include +#endif #include diff --git a/rrd_update.c b/rrd_update.c index 1fc4573..30d6501 100644 --- a/rrd_update.c +++ b/rrd_update.c @@ -14,7 +14,11 @@ #include "php.h" #include "zend_exceptions.h" -#include "ext/standard/php_smart_string.h" +#if PHP_VERSION_ID < 70200 +#include +#else +#include +#endif #include