diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-10-16 18:14:30 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-10-16 18:14:30 +0400 |
commit | 80c94f260eda858a061baeec03608e1bbc77675e (patch) | |
tree | 3ea1dabde8ef88c5ce5f6db37460393405bef9a2 | |
parent | dde2abde39412f3d0953a7a538c20ceb92520555 (diff) |
Cygwin support
-rw-r--r-- | auto/headers | 2 | ||||
-rw-r--r-- | src/os/unix/ngx_posix_config.h | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/auto/headers b/auto/headers index 29eec60ab..d41d95a75 100644 --- a/auto/headers +++ b/auto/headers @@ -6,3 +6,5 @@ ngx_include="unistd.h"; . auto/include 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 index f79657654..9898de0d0 100644 --- 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 <sys/types.h> #include <sys/time.h> #if (NGX_HAVE_UNISTD_H) @@ -64,6 +69,15 @@ #include <limits.h> /* IOV_MAX */ #endif +#if (NGX_HAVE_MALLOC_H) +#include <malloc.h> /* memalign() */ +#endif + +#if (NGX_HAVE_CRYPT_H) +#include <crypt.h> +#endif + + #ifndef IOV_MAX #define IOV_MAX 16 #endif |