5 messages in ru.sysoev.nginxRe: malloc.h obsolete...
FromSent OnAttachments
Darrin ChandlerDec 29, 2007 10:05 am 
Igor SysoevDec 29, 2007 10:38 am 
Darrin ChandlerDec 29, 2007 10:53 am 
Igor SysoevDec 29, 2007 11:16 am 
Darrin ChandlerDec 29, 2007 12:16 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: malloc.h obsolete...Actions...
From:Darrin Chandler (dwch@public.gmane.org)
Date:Dec 29, 2007 12:16:00 pm
List:ru.sysoev.nginx

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. :)