Index: trunk/xcache.c
===================================================================
--- trunk/xcache.c	(revision 1129)
+++ trunk/xcache.c	(revision 1131)
@@ -32,4 +32,5 @@
 #include "ext/standard/info.h"
 #include "ext/standard/php_string.h"
+#include "SAPI.h"
 /* }}} */
 
@@ -691,4 +692,5 @@
 
 	if (strcmp(sapi_module.name, "cli") == 0) {
+		char *env;
 		if ((env = getenv("XCACHE_TEST")) != NULL) {
 			xc_test = atoi(env);
