# HG changeset patch # User Igor Sysoev # Date 1206286960 0 # Node ID d85e291b99f950741d36d140150d309b12cc552a # Parent ce75aac647e73f87dd08355187630c6f3f45cd4f it seems that malloc.h is required for Cygwin only and breaks building on other platforms diff --git a/auto/headers b/auto/headers --- a/auto/headers +++ b/auto/headers @@ -7,4 +7,3 @@ ngx_include="inttypes.h"; . auto/includ ngx_include="limits.h"; . auto/include ngx_include="sys/filio.h"; . auto/include ngx_include="crypt.h"; . auto/include -ngx_include="malloc.h"; . auto/include diff --git a/src/os/unix/ngx_posix_config.h b/src/os/unix/ngx_posix_config.h --- a/src/os/unix/ngx_posix_config.h +++ b/src/os/unix/ngx_posix_config.h @@ -70,7 +70,7 @@ #include /* IOV_MAX */ #endif -#if (NGX_HAVE_MALLOC_H) +#ifdef __CYGWIN__ #include /* memalign() */ #endif