Subject: FreeBSD: don't use malloc.h?
To: Packages Technical List NetBSD Discussion <tech-pkg@netbsd.org>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: tech-pkg
Date: 12/17/2006 20:15:03
I noticed the following when compiling wip/speex-devel on FreeBSD 5.5:
In file included from kiss_fft.h:8,
from kiss_fftr.h:4,
from fftwrap.c:134:
/usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by
<stdlib.h>"
Indeed, /usr/include/malloc.h looks like this:
/* $FreeBSD: src/include/malloc.h,v 1.5 2001/11/07 23:14:31 obrien
Exp $ */
#if __STDC__
#error "<malloc.h> has been replaced by <stdlib.h>"
#else
#include <stdlib.h>
#endif
Does anyone happen to know for which versions of FreeBSD malloc.h has
been replaced by stdlib.h? Can I assume this to be the case on every
OS if the __STDC__ macro is set?
--
Georg Schwarz http://home.pages.de/~schwarz/
georg.schwarz@freenet.de +49 178 8545053