1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Fix "%ld" bug on php4.

PR:		80003
Submitted by:	Tim Bishop (maintainer)
This commit is contained in:
Roman Bogorodskiy 2005-04-16 15:27:30 +00:00
parent 8133028777
commit bb5b99d712
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133481
2 changed files with 19 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= statgrab
PORTVERSION= 0.4
PORTREVISION= 1
CATEGORIES= devel pear
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
@ -31,4 +32,9 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
EXTRA_LIBS= -lkvm
.endif
.if ${PHP_VER} < 5
post-patch:
@${PATCH} -d ${WRKSRC} -p0 < ${FILESDIR}/php_statgrab.h.patch
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,13 @@
--- php_statgrab.h.bak Sat Apr 16 13:48:58 2005
+++ php_statgrab.h Sat Apr 16 13:49:01 2005
@@ -55,6 +55,10 @@
PHP_FUNCTION(sg_user_stats);
PHP_FUNCTION(sg_network_iface_stats);
+#ifdef snprintf
+#undef snprintf
+#endif
+
#endif /* PHP_STATGRAB_H */