ports/devel/pecl-statgrab/files/patch-statgrab.c
Tim Bishop eb030f5a5c - Add devel/libstatgrab0 (copied from devel/libstatgrab)
- Switch bindings to use devel/libstatgrab0 instead of devel/libstatgrab
- Fix devel/pecl-statgrab to work with current PHP versions

I have an update ready for devel/libstatgrab (version 0.90) that
brings a number of API changes that are incompatible with the current
version. These bindings haven't yet been updated upstream to support
the new API, so instead of holding off indefinitely I've created the
devel/libstatgrab0 port to provide just the library and header file
for the older API version so that these bindings can continue to be
used when the main port is updated. Once these bindings are updated
the libstatgrab0 port can be removed.

Both devel/libstatgrab and devel/libstatgrab0 can be installed at the
same time.

The other ports that depend on devel/libstatgrab will be updated to
use the new API.
2014-05-12 16:56:23 +00:00

20 lines
536 B
C

--- ./statgrab.c.orig 2006-11-07 22:14:38.000000000 +0000
+++ ./statgrab.c 2014-05-10 02:12:48.502985234 +0100
@@ -22,7 +22,7 @@
#include "config.h"
#endif
-#include <statgrab.h>
+#include <statgrab0.h>
#include "php.h"
#include "php_ini.h"
@@ -69,7 +69,7 @@
*
* Every user visible function must have an entry in statgrab_functions[].
*/
-function_entry statgrab_functions[] = {
+zend_function_entry statgrab_functions[] = {
PHP_FE(sg_cpu_percent_usage, NULL)
PHP_FE(sg_cpu_totals, NULL)
PHP_FE(sg_cpu_diff, NULL)