mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
wolfcrypt/benchmark/benchmark.c: fix gating for #include <unistd.h>.
This commit is contained in:
@ -39,8 +39,10 @@
|
||||
#ifdef HAVE_PTHREAD
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
#if defined(HAVE_PTHREAD) || \
|
||||
(!defined(NO_STDIO_FILESYSTEM) && !defined(NO_ERROR_STRINGS))
|
||||
#if defined(HAVE_PTHREAD) || \
|
||||
(!defined(NO_CRYPT_BENCHMARK) && !defined(NO_STDIO_FILESYSTEM) && \
|
||||
!defined(NO_ERROR_STRINGS) && !defined(NO_MAIN_DRIVER) && \
|
||||
!defined(BENCH_EMBEDDED))
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
@ -320,7 +322,8 @@
|
||||
#endif
|
||||
|
||||
#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__
|
||||
#else
|
||||
#define LIBCALL_CHECK_RET(...) do { \
|
||||
|
Reference in New Issue
Block a user