From 45d6c34015a5dc971d1e3ca095ad758339c46441 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 27 Feb 2017 20:43:16 -0800 Subject: Avoid standard malloc for buffer queue entries --- include/almalloc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/almalloc.h b/include/almalloc.h index 355db795..8eadb5b3 100644 --- a/include/almalloc.h +++ b/include/almalloc.h @@ -7,6 +7,9 @@ extern "C" { #endif +/* Minimum alignment required by posix_memalign. */ +#define DEF_ALIGN sizeof(void*) + void *al_malloc(size_t alignment, size_t size); void *al_calloc(size_t alignment, size_t size); void al_free(void *ptr); -- cgit v1.2.3