aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2014-10-20 14:16:16 +0200
committerRiccardo Spagni <ric@spagni.net>2014-10-20 14:16:16 +0200
commit8eb23757993251f3b8cdf7638ecd53c7d854afbc (patch)
treeaa877b7f995f7a66c75f7b8f1720d4d855cbfae1 /tests/unit_tests
parentremoved unecessary mnemonics test (diff)
downloadmonero-8eb23757993251f3b8cdf7638ecd53c7d854afbc.tar.xz
Apple and BSD don't need malloc.h
Diffstat (limited to 'tests/unit_tests')
-rw-r--r--tests/unit_tests/slow_memmem.cpp6
1 files changed, 5 insertions, 1 deletions
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 <unistd.h>
#include <string.h>
#include <stdint.h>
-#include <malloc.h>
#include "gtest/gtest.h"
+// Both OS X and FreeBSD don't need malloc.h
+#if !defined(__APPLE__) && !defined(__FreeBSD__)
+ #include <malloc.h>
+#endif
+
//#define TEST_ORIGINAL
//#define VERBOSE