Nginx on OpenBSD

Renaud Allard renaud at
Fri Mar 21 11:41:33 MSK 2008


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?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3304 bytes
Desc: S/MIME Cryptographic Signature
URL: <>

More information about the nginx mailing list