ID:474 - Compile fix on nonlinux systems

This patch fixes compilation on systems without a separate <malloc.h>.
This commit is contained in:
Leonid Nevecherya 2017-01-17 11:00:37 +03:00 committed by Zdenek Styblik
parent 77fe563503
commit 5db314f694

View File

@ -30,7 +30,11 @@
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifdef HAVE_MALLOC_H
# include <malloc.h> # include <malloc.h>
#else
# include <stdlib.h>
#endif
#include <string.h> #include <string.h>
#include <ipmitool/helper.h> #include <ipmitool/helper.h>