wolfcrypt/benchmark/benchmark.c: fix gating for #include <unistd.h>.

This commit is contained in:
Daniel Pouzzner
2022-07-28 09:26:46 -05:00
parent 824d44b705
commit 3ac04fa3ee

View File

@ -39,8 +39,10 @@
#ifdef HAVE_PTHREAD #ifdef HAVE_PTHREAD
#include <pthread.h> #include <pthread.h>
#endif #endif
#if defined(HAVE_PTHREAD) || \ #if defined(HAVE_PTHREAD) || \
(!defined(NO_STDIO_FILESYSTEM) && !defined(NO_ERROR_STRINGS)) (!defined(NO_CRYPT_BENCHMARK) && !defined(NO_STDIO_FILESYSTEM) && \
!defined(NO_ERROR_STRINGS) && !defined(NO_MAIN_DRIVER) && \
!defined(BENCH_EMBEDDED))
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
#endif #endif
@ -320,7 +322,8 @@
#endif #endif
#undef LIBCALL_CHECK_RET #undef LIBCALL_CHECK_RET
#if defined(NO_STDIO_FILESYSTEM) || defined(NO_ERROR_STRINGS) #if defined(NO_STDIO_FILESYSTEM) || defined(NO_ERROR_STRINGS) || \
defined(NO_MAIN_DRIVER) || defined(BENCH_EMBEDDED)
#define LIBCALL_CHECK_RET(...) __VA_ARGS__ #define LIBCALL_CHECK_RET(...) __VA_ARGS__
#else #else
#define LIBCALL_CHECK_RET(...) do { \ #define LIBCALL_CHECK_RET(...) do { \