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:
parent
8133028777
commit
bb5b99d712
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133481
@ -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>
|
||||
|
13
devel/pecl-statgrab/files/php_statgrab.h.patch
Normal file
13
devel/pecl-statgrab/files/php_statgrab.h.patch
Normal 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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user