wolfcrypt/benchmark/benchmark.c: fix gating for #include <errno.h>, and add #include <unistd.h> for _exit().

This commit is contained in:
Daniel Pouzzner
2022-07-11 23:15:43 -05:00
parent ccc5952369
commit b64949d564

View File

@ -38,7 +38,11 @@
#ifdef HAVE_PTHREAD
#include <pthread.h>
#endif
#if defined(HAVE_PTHREAD) || \
(!defined(NO_STDIO_FILESYSTEM) && !defined(NO_ERROR_STRINGS))
#include <errno.h>
#include <unistd.h>
#endif
/* Macro to disable benchmark */