From ce3e1c2ca89ae8641606648da287cdb1537da354 Mon Sep 17 00:00:00 2001 From: Alex Dupre Date: Thu, 24 Nov 2005 07:03:54 +0000 Subject: [PATCH] Fix build on FreeBSD 4.X. Reported by: pointyhat via kris --- www/eaccelerator/files/patch-eaccelerator.c | 28 +++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 www/eaccelerator/files/patch-eaccelerator.c 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());