1
0
Fork 0

fix build for win32

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@557 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 15 years ago
parent 2e156fb758
commit ece92b1cf4

@ -19,13 +19,13 @@
#include "ext/standard/md5.h"
#include "ext/standard/php_math.h"
#include "ext/standard/php_string.h"
#ifdef ZEND_ENGINE_2_1
#include "ext/date/php_date.h"
#endif
#include "zend_extensions.h"
#include "SAPI.h"
#include "xcache.h"
#ifdef ZEND_ENGINE_2_1
#include "ext/date/php_date.h"
#endif
#include "optimizer.h"
#include "coverager.h"
#include "disassembler.h"
@ -3089,7 +3089,11 @@ static PHP_MINIT_FUNCTION(xcache)
}
xc_initized = 1;
xc_init_time = time(NULL);
#ifdef PHP_WIN32
xc_init_instance_id = GetCurrentProcessId();
#else
xc_init_instance_id = getpid();
#endif
#ifdef ZTS
xc_init_instance_subid = tsrm_thread_id();
#endif

Loading…
Cancel
Save