diff options
author | Riccardo Spagni <ric@spagni.net> | 2014-10-20 14:16:16 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2014-10-20 14:16:16 +0200 |
commit | 8eb23757993251f3b8cdf7638ecd53c7d854afbc (patch) | |
tree | aa877b7f995f7a66c75f7b8f1720d4d855cbfae1 /tests/unit_tests/slow_memmem.cpp | |
parent | removed unecessary mnemonics test (diff) | |
download | monero-8eb23757993251f3b8cdf7638ecd53c7d854afbc.tar.xz |
Apple and BSD don't need malloc.h
Diffstat (limited to '')
-rw-r--r-- | tests/unit_tests/slow_memmem.cpp | 6 |
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 |