Browse Source

Merge pull request #5291 from kaleb-himes/FRDM-K64-Fixes

Add necessary includes for cross-builds
David Garske 1 year ago
parent
commit
741393e84f
2 changed files with 3 additions and 0 deletions
  1. 1 0
      IDE/ROWLEY-CROSSWORKS-ARM/benchmark_main.c
  2. 2 0
      wolfcrypt/benchmark/benchmark.h

+ 1 - 0
IDE/ROWLEY-CROSSWORKS-ARM/benchmark_main.c

@@ -28,6 +28,7 @@
 #include <wolfssl/wolfcrypt/wc_port.h>
 #include <wolfcrypt/benchmark/benchmark.h>
 #include <stdio.h>
+#include "hw.h" /* Needed for 'delay_us' prototype */
 
 typedef struct func_args {
     int    argc;

+ 2 - 0
wolfcrypt/benchmark/benchmark.h

@@ -28,6 +28,8 @@
     extern "C" {
 #endif
 
+#include <wolfssl/wolfcrypt/types.h> /* Needed for 'byte' typedef */
+
 /* run all benchmark entry */
 #ifdef HAVE_STACK_SIZE
 THREAD_RETURN WOLFSSL_THREAD benchmark_test(void* args);