Nginx on OpenBSD
is at rambler-co.ru
Fri Mar 21 12:05:39 MSK 2008
On Fri, Mar 21, 2008 at 09:59:00AM +0100, Grzegorz Nosek wrote:
> 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?
> > Regards
> Is there any platform that actually needs malloc.h? AFAIK, the C
> standard defines malloc() in stdlib.h.
> I'd vote for hardcoding stdlib.h instead of malloc.h.
malloc.h is required for Cygwin only. And it seems that it's required
for currently unused memalign() only.
More information about the nginx