Nginx on OpenBSD
Igor Sysoev
is at rambler-co.ru
Sat Mar 22 17:04:17 MSK 2008
On Fri, Mar 21, 2008 at 09:41:33AM +0100, Renaud Allard wrote:
> Hello,
>
> When trying to compile nginx on OpenBSD (4.2 or 4.3 prerelease), I get
> the following error:
>
> In file included from src/os/unix/ngx_posix_config.h:74,
> from src/core/ngx_config.h:37,
> from src/core/nginx.c:7:
> /usr/include/malloc.h:4:2: #warning "<malloc.h> is obsolete, use <stdlib.h>"
>
> Of course, replacing <malloc.h> by <stdlib.h> in
> src/os/unix/ngx_posix_config.h solves the problem. But isn't there a way
> to detect this at configure time?
Try the attached patch.
--
Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
Index: src/os/unix/ngx_posix_config.h
===================================================================
--- src/os/unix/ngx_posix_config.h (revision 1273)
+++ src/os/unix/ngx_posix_config.h (working copy)
@@ -70,7 +70,7 @@
#include <limits.h> /* IOV_MAX */
#endif
-#if (NGX_HAVE_MALLOC_H)
+#ifdef __CYGWIN__
#include <malloc.h> /* memalign() */
#endif
Index: auto/headers
===================================================================
--- auto/headers (revision 1273)
+++ auto/headers (working copy)
@@ -7,4 +7,3 @@
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
More information about the nginx
mailing list