]> git.kaiwu.me - nginx.git/commitdiff
it seems that malloc.h is required for Cygwin only
authorIgor Sysoev <igor@sysoev.ru>
Sun, 23 Mar 2008 15:42:40 +0000 (15:42 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 23 Mar 2008 15:42:40 +0000 (15:42 +0000)
and breaks building on other platforms

auto/headers
src/os/unix/ngx_posix_config.h

index d41d95a753f4f01f68d1a18dfacb01196c28cd71..542b757c1391f2cb18e9bc82d1d2ef15322ffac6 100644 (file)
@@ -7,4 +7,3 @@ 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 37176e0d25c76fc417082f1d53e3ec792bdb34f3..ae6f70f6a8a04e935f748cc520d9b292e77ad5ec 100644 (file)
@@ -70,7 +70,7 @@
 #include <limits.h>             /* IOV_MAX */
 #endif
 
-#if (NGX_HAVE_MALLOC_H)
+#ifdef __CYGWIN__
 #include <malloc.h>             /* memalign() */
 #endif