summaryrefslogtreecommitdiff
path: root/unittests/unittest.h
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/unittest.h')
-rw-r--r--unittests/unittest.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/unittests/unittest.h b/unittests/unittest.h
index 4ac6366b..5d170af7 100644
--- a/unittests/unittest.h
+++ b/unittests/unittest.h
@@ -1,6 +1,8 @@
#ifndef FIO_UNITTEST_H
#define FIO_UNITTEST_H
+#include <sys/types.h>
+
#include <CUnit/CUnit.h>
#include <CUnit/Basic.h>
@@ -9,7 +11,13 @@ struct fio_unittest_entry {
CU_TestFunc fn;
};
+/* XXX workaround lib/memalign.c's dependency on smalloc.c */
+void *smalloc(size_t);
+void sfree(void*);
+
CU_ErrorCode fio_unittest_add_suite(const char*, CU_InitializeFunc,
CU_CleanupFunc, struct fio_unittest_entry*);
+CU_ErrorCode fio_unittest_lib_memalign(void);
+
#endif