From 8eb23757993251f3b8cdf7638ecd53c7d854afbc Mon Sep 17 00:00:00 2001 From: Riccardo Spagni Date: Mon, 20 Oct 2014 14:16:16 +0200 Subject: [PATCH] Apple and BSD don't need malloc.h --- tests/unit_tests/slow_memmem.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unit_tests/slow_memmem.cpp b/tests/unit_tests/slow_memmem.cpp index b1a7622b2..2613209f8 100644 --- a/tests/unit_tests/slow_memmem.cpp +++ b/tests/unit_tests/slow_memmem.cpp @@ -33,9 +33,13 @@ #include #include #include -#include #include "gtest/gtest.h" +// Both OS X and FreeBSD don't need malloc.h +#if !defined(__APPLE__) && !defined(__FreeBSD__) + #include +#endif + //#define TEST_ORIGINAL //#define VERBOSE