From 9ec1e03194568630a2e58232d56e9d37dd13ed7d Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Tue, 17 Feb 2015 14:14:36 +0000 Subject: Add null async implementation Create a "null" async implementation for platforms that lack support. This just does nothing when called and therefore performs synchronously. Reviewed-by: Rich Salz --- crypto/async/async_locl.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'crypto/async/async_locl.h') diff --git a/crypto/async/async_locl.h b/crypto/async/async_locl.h index fefe62a..4a6cb3e 100644 --- a/crypto/async/async_locl.h +++ b/crypto/async/async_locl.h @@ -57,10 +57,7 @@ typedef struct async_ctx_st ASYNC_CTX; #include "arch/async_win.h" #include "arch/async_posix.h" - -#ifndef ASYNC_ARCH -# error Failed to detect async arch -#endif +#include "arch/async_null.h" struct async_ctx_st { ASYNC_FIBRE dispatcher; -- cgit v1.1