Index: trunk/mod_cacher/xc_cacher.c
===================================================================
--- trunk/mod_cacher/xc_cacher.c	(revision 1178)
+++ trunk/mod_cacher/xc_cacher.c	(revision 1186)
@@ -25,5 +25,8 @@
 #include "ext/standard/md5.h"
 #ifdef ZEND_ENGINE_2_1
-#include "ext/date/php_date.h"
+#	include "ext/date/php_date.h"
+#endif
+#ifdef ZEND_WIN32
+#	include <process.h>
 #endif
 #include "ext/standard/php_math.h"
@@ -3468,9 +3471,5 @@
 		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();
