malloc.h obsolete...
Darrin Chandler
dwchandler at stilyagin.com
Sat Dec 29 23:16:23 MSK 2007
On Sat, Dec 29, 2007 at 10:16:59PM +0300, Igor Sysoev wrote:
> On FreeBSD I see in objs/autoconf.err:
>
> ----------------------------------------
> checking for malloc.h
>
> In file included from objs.gcc/autotest.c:2:
> /usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by <stdlib.h>"
> ----------
OpenBSD's malloc.h has:
#warning "<malloc.h> is obsolete, use <stdlib.h>"
#include <stdlib.h>
So autoconf lets it be used.
> One way is to add
>
> ./configure ... --with-cc-opt="-DNGX_HAVE_MALLOC_H=0"
Yes. I'll use that unless some better idea comes to me. Thanks!
Note that this is not causing problems. I just like to reduce warnings
so that I can more easily spot real issues, if any should come up.
Thanks again. :)
--
Darrin Chandler | Phoenix BSD User Group | MetaBUG
dwchandler at stilyagin.com | http://phxbug.org/ | http://metabug.org/
http://www.stilyagin.com/ | Daemons in the Desert | Global BUG Federation
More information about the nginx
mailing list