]> git.kaiwu.me - nginx.git/commitdiff
Cygwin support
authorIgor Sysoev <igor@sysoev.ru>
Tue, 16 Oct 2007 14:14:30 +0000 (14:14 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 16 Oct 2007 14:14:30 +0000 (14:14 +0000)
auto/headers
src/os/unix/ngx_posix_config.h

index 29eec60ab119da9fb101b340c62a114358a7e5f7..d41d95a753f4f01f68d1a18dfacb01196c28cd71 100644 (file)
@@ -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
index f796576549d8ef04f2eef16bde3d0bdf096450cb..9898de0d04996b59d4ace8d7c9d3512500fabc97 100644 (file)
 #endif
 
 
+#ifdef __CYGWIN__
+#define timezonevar             /* timezone is variable */
+#endif
+
+
 #include <sys/types.h>
 #include <sys/time.h>
 #if (NGX_HAVE_UNISTD_H)
 #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