From d03dfd1a2e443c7bde5a070950973dae743ea64d Mon Sep 17 00:00:00 2001 From: ZhouyihaiDing Date: Fri, 6 Apr 2018 13:09:45 -0700 Subject: [PATCH] PHP: fix php pecl installation error on windos --- config.w32 | 4 +++- templates/config.w32.template | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config.w32 b/config.w32 index bb9cb3ffe2a..1a09accd8a1 100644 --- a/config.w32 +++ b/config.w32 @@ -637,11 +637,13 @@ if (PHP_GRPC != "no") { EXTENSION("grpc", grpc_source, null, "/DOPENSSL_NO_ASM /D_GNU_SOURCE /DWIN32_LEAN_AND_MEAN "+ "/D_HAS_EXCEPTIONS=0 /DNOMINMAX /DGRPC_ARES=0 /D_WIN32_WINNT=0x600 "+ + "/DPB_FIELD_16BIT "+ "/I"+configure_module_dirname+" "+ "/I"+configure_module_dirname+"\\include "+ "/I"+configure_module_dirname+"\\src\\php\\ext\\grpc "+ "/I"+configure_module_dirname+"\\third_party\\boringssl\\include "+ - "/I"+configure_module_dirname+"\\third_party\\zlib"); + "/I"+configure_module_dirname+"\\third_party\\zlib "+ + "/I"+configure_module_dirname+"\\third_party\\address_sorting\\include"); base_dir = get_define('BUILD_DIR'); FSO.CreateFolder(base_dir+"\\ext"); diff --git a/templates/config.w32.template b/templates/config.w32.template index 4edef963f2c..ef25e555966 100644 --- a/templates/config.w32.template +++ b/templates/config.w32.template @@ -23,11 +23,13 @@ EXTENSION("grpc", grpc_source, null, "/DOPENSSL_NO_ASM /D_GNU_SOURCE /DWIN32_LEAN_AND_MEAN "+ "/D_HAS_EXCEPTIONS=0 /DNOMINMAX /DGRPC_ARES=0 /D_WIN32_WINNT=0x600 "+ + "/DPB_FIELD_16BIT "+ "/I"+configure_module_dirname+" "+ "/I"+configure_module_dirname+"\\include "+ "/I"+configure_module_dirname+"\\src\\php\\ext\\grpc "+ "/I"+configure_module_dirname+"\\third_party\\boringssl\\include "+ - "/I"+configure_module_dirname+"\\third_party\\zlib"); + "/I"+configure_module_dirname+"\\third_party\\zlib "+ + "/I"+configure_module_dirname+"\\third_party\\address_sorting\\include"); <% dirs = {} for lib in libs: