From e765597f655c0305044aa646c4ca36eb5cf5dd65 Mon Sep 17 00:00:00 2001 From: Shuhei Tanuma Date: Tue, 19 Jun 2012 02:44:03 +0900 Subject: [PATCH] for now, php-uv can build on windows box. but it requires some work. * make libuv first. * after configure, add Iphlpapi.lib and psapi.lib on your Makefile directly. * don't mix debug / release build (LIBCMTD conflicts) --- config.w32 | 4 +++- php_uv.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config.w32 b/config.w32 index aebc269..07c0f26 100644 --- a/config.w32 +++ b/config.w32 @@ -1,9 +1,11 @@ ARG_ENABLE("uv", "for uv support", "no"); if (PHP_UV != "no") { - if (CHECK_HEADER_ADD_INCLUDE("uv.h", "CFLAGS_UV", ".\\libuv\\include") && CHECK_LIB("uv.lib", "uv", PHP_UV, ".\\")) { + if (CHECK_HEADER_ADD_INCLUDE("uv.h", "CFLAGS_UV", ".\\libuv\\include") && + CHECK_LIB("uv.lib", "uv", PHP_UV, ".\\")) { EXTENSION('uv', 'php_uv.c uv.c'); } else { WARNING("uv not enabled; libraries and/or headers not found"); } + CHECK_LIB("Iphlpapi.lib","iphlpapi",PHP_UV); } \ No newline at end of file diff --git a/php_uv.h b/php_uv.h index 6192bbd..fbf68e2 100644 --- a/php_uv.h +++ b/php_uv.h @@ -12,7 +12,6 @@ #include "php.h" #include "uv.h" -#include "ext/spl/spl_exceptions.h" #include "zend_interfaces.h" /* Define the entry point symbol