malloc.h obsolete...

Darrin Chandler dwchandler at
Sat Dec 29 21:05:56 MSK 2007


I have a question regarding this warning message (which is repeated many

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: #warning "<malloc.h> is obsolete, use <stdlib.h>"

stdlib.h seems to be assumed always, and malloc.h hasn't been needed for
some time. Do some of the supported systems still use malloc.h instead
of stdlib.h for this stuff? Or can the malloc.h detection simply be
removed from auto/headers, ngx_posix_config.h, et al?

Darrin Chandler            |  Phoenix BSD User Group  |  MetaBUG
dwchandler at   |      |  |  Daemons in the Desert   |  Global BUG Federation

More information about the nginx mailing list