Fix FreeBSD build: include malloc.h only when a macro HAVE_MALLOC_H defined

This commit is contained in:
Stas Degteff
2011-02-17 11:18:16 +00:00
parent 043e69a93a
commit 6a6da92414
3 changed files with 3 additions and 5 deletions

View File

@@ -32,7 +32,7 @@
/* ------------------------------------------------------------------ */
#include <stdlib.h>
#if !defined(__APPLE__)
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
#include <string.h>