aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2006-11-07 23:58:20 +0800
committerale <ale@FreeBSD.org>2006-11-07 23:58:20 +0800
commit025f04bd066c62d70acffd91bf6abb86dff4d751 (patch)
treea4d6c1ff21eb7963f7a0576b818eb6e436f8429b /sysutils
parent7c8ea4e82987bc34c0f20aebef2acb01d23ccecc (diff)
downloadfreebsd-ports-gnome-025f04bd066c62d70acffd91bf6abb86dff4d751.tar.gz
freebsd-ports-gnome-025f04bd066c62d70acffd91bf6abb86dff4d751.tar.zst
freebsd-ports-gnome-025f04bd066c62d70acffd91bf6abb86dff4d751.zip
Fix compilation with php 5.2.0.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/pecl-fileinfo/Makefile1
-rw-r--r--sysutils/pecl-fileinfo/files/patch-fileinfo.c24
2 files changed, 25 insertions, 0 deletions
diff --git a/sysutils/pecl-fileinfo/Makefile b/sysutils/pecl-fileinfo/Makefile
index bff8e8ec0d1b..af9e9356d06c 100644
--- a/sysutils/pecl-fileinfo/Makefile
+++ b/sysutils/pecl-fileinfo/Makefile
@@ -7,6 +7,7 @@
PORTNAME= fileinfo
PORTVERSION= 1.0.3
+PORTREVISION= 1
CATEGORIES= sysutils pear
MASTER_SITES= http://pecl.php.net/get/
PKGNAMEPREFIX= pecl-
diff --git a/sysutils/pecl-fileinfo/files/patch-fileinfo.c b/sysutils/pecl-fileinfo/files/patch-fileinfo.c
new file mode 100644
index 000000000000..e4cca194fa7a
--- /dev/null
+++ b/sysutils/pecl-fileinfo/files/patch-fileinfo.c
@@ -0,0 +1,24 @@
+--- fileinfo.c.orig 2005/12/20 19:17:00
++++ fileinfo.c 2006/10/10 09:52:06
+@@ -121,10 +121,17 @@
+ /* {{{ finfo_class_functions
+ */
+ function_entry finfo_class_functions[] = {
+- ZEND_ME_MAPPING(finfo, finfo_open, NULL)
+- ZEND_ME_MAPPING(set_flags, finfo_set_flags,NULL)
+- ZEND_ME_MAPPING(file, finfo_file, NULL)
+- ZEND_ME_MAPPING(buffer, finfo_buffer, NULL)
++#if PHP_VERSION_ID >= 50200
++ ZEND_ME_MAPPING(finfo, finfo_open, NULL, ZEND_ACC_PUBLIC)
++ ZEND_ME_MAPPING(set_flags, finfo_set_flags,NULL, ZEND_ACC_PUBLIC)
++ ZEND_ME_MAPPING(file, finfo_file, NULL, ZEND_ACC_PUBLIC)
++ ZEND_ME_MAPPING(buffer, finfo_buffer, NULL, ZEND_ACC_PUBLIC)
++#else
++ ZEND_ME_MAPPING(finfo, finfo_open, NULL)
++ ZEND_ME_MAPPING(set_flags, finfo_set_flags,NULL)
++ ZEND_ME_MAPPING(file, finfo_file, NULL)
++ ZEND_ME_MAPPING(buffer, finfo_buffer, NULL)
++#endif
+ {NULL, NULL, NULL}
+ };
+ /* }}} */