# HG changeset patch # User Igor Sysoev # Date 1192544070 0 # Node ID 5cd655d5d2faa23fbce95527bd87ee89b574dd3b # Parent 08998303f3d6961cb82dde448d6910ca339b4518 Cygwin support diff --git a/auto/headers b/auto/headers --- a/auto/headers +++ b/auto/headers @@ -6,3 +6,5 @@ ngx_include="unistd.h"; . auto/includ ngx_include="inttypes.h"; . auto/include 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 @@ -19,6 +19,11 @@ #endif +#ifdef __CYGWIN__ +#define timezonevar /* timezone is variable */ +#endif + + #include #include #if (NGX_HAVE_UNISTD_H) @@ -64,6 +69,15 @@ #include /* IOV_MAX */ #endif +#if (NGX_HAVE_MALLOC_H) +#include /* memalign() */ +#endif + +#if (NGX_HAVE_CRYPT_H) +#include +#endif + + #ifndef IOV_MAX #define IOV_MAX 16 #endif