Subject: FreeBSD: don't use malloc.h?
To: Packages Technical List NetBSD Discussion <>
From: Georg Schwarz <>
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  

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>"
#include <stdlib.h>

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  +49 178 8545053