This part of stdhdr.h causes build to crash on FreeBSD:
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#else
void *malloc(int);
#endif
It could be easily fixed by replacing "malloc(int)"
with "malloc(unsigned int)" or better with
"malloc(size_t)".
konrad.rybacki@wp.pl