Menu

#20 Compilation problem on FreeBSD

open
nobody
None
5
2006-08-14
2006-08-14
Anonymous
No

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

Discussion


Log in to post a comment.

MongoDB Logo MongoDB