aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-04-01 09:42:40 +0200
committerhexcoder- <heiko@hexco.de>2020-04-01 09:42:40 +0200
commitc7818714acc8c8dd491c2da98eab06b0db6fbfa0 (patch)
treef13b9edb432ed8bc4f80dec218cb37b98ae7e7a7
parentcec3d744971ee1d7a9301bf7a9ebdd02c955846f (diff)
downloadafl++-c7818714acc8c8dd491c2da98eab06b0db6fbfa0.tar.gz
fix cmocka fixup
-rw-r--r--test/unittests/unit_maybe_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unittests/unit_maybe_alloc.c b/test/unittests/unit_maybe_alloc.c
index 7c6cfaaa..6a165dd4 100644
--- a/test/unittests/unit_maybe_alloc.c
+++ b/test/unittests/unit_maybe_alloc.c
@@ -2,6 +2,7 @@
#include <stddef.h>
#include <setjmp.h>
#include <assert.h>
+#include <cmocka.h>
/* cmocka < 1.0 didn't support these features we need */
#ifndef assert_ptr_equal
#define assert_ptr_equal(a, b) \
@@ -12,7 +13,6 @@
#define cmocka_unit_test unit_test
#define cmocka_run_group_tests(t, setup, teardown) run_tests(t)
#endif
-#include <cmocka.h>
extern void mock_assert(const int result, const char* const expression,