aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2005-11-24 15:03:54 +0800
committerale <ale@FreeBSD.org>2005-11-24 15:03:54 +0800
commit00b4aa388f62a6c8d11b9157461966fdb7d91485 (patch)
treeed1b3b35e5a5258076d747ed93a369c92330b210 /www
parentde71cf8e887df430a25542561eb815f5452c7226 (diff)
downloadfreebsd-ports-gnome-00b4aa388f62a6c8d11b9157461966fdb7d91485.tar.gz
freebsd-ports-gnome-00b4aa388f62a6c8d11b9157461966fdb7d91485.tar.zst
freebsd-ports-gnome-00b4aa388f62a6c8d11b9157461966fdb7d91485.zip
Fix build on FreeBSD 4.X.
Reported by: pointyhat via kris
Diffstat (limited to 'www')
-rw-r--r--www/eaccelerator/files/patch-eaccelerator.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/www/eaccelerator/files/patch-eaccelerator.c b/www/eaccelerator/files/patch-eaccelerator.c
new file mode 100644
index 000000000000..dcf9318c0e7c
--- /dev/null
+++ b/www/eaccelerator/files/patch-eaccelerator.c
@@ -0,0 +1,28 @@
+--- eaccelerator.c.orig Thu Nov 24 07:59:33 2005
++++ eaccelerator.c Thu Nov 24 08:00:58 2005
+@@ -1131,9 +1131,10 @@
+ }
+
+ if (zend_is_executing(TSRMLS_C)) {
++ int tryname_length;
+ strncpy(tryname, zend_get_executed_filename(TSRMLS_C), MAXPATHLEN);
+ tryname[MAXPATHLEN - 1] = 0;
+- int tryname_length = strlen(tryname);
++ tryname_length = strlen(tryname);
+
+ while (tryname_length >= 0 && !IS_SLASH(tryname[tryname_length]))
+ tryname_length--;
+@@ -1256,12 +1257,12 @@
+ int nreloads;
+ time_t compile_time;
+ int stat_result = 0;
++ struct timeval tv_start;
+
+ #ifdef EACCELERATOR_USE_INODE
+ realname[0] = '\000';
+ #endif
+
+- struct timeval tv_start;
+ ea_debug_printf(EA_TEST_PERFORMANCE, "[%d] Enter COMPILE\n",getpid());
+ ea_debug_start_time(&tv_start);
+ ea_debug_printf(EA_DEBUG, "[%d] Enter COMPILE\n",getpid());