Skip to content

Commit

Permalink
Merge pull request #6251 from PrinceOfPuppers/master
Browse files Browse the repository at this point in the history
updated zephyr includes
  • Loading branch information
dgarske authored Apr 3, 2023
2 parents b1e4d49 + 9b1aed0 commit a4a6a05
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions wolfcrypt/src/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -3577,11 +3577,11 @@ int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)

#elif defined(WOLFSSL_ZEPHYR)

#include <random/rand32.h>
#include <zephyr/random/rand32.h>
#ifndef _POSIX_C_SOURCE
#include <posix/time.h>
#include <zephyr/posix/time.h>
#else
#include <sys/time.h>
#include <time.h>
#endif

int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
Expand Down
2 changes: 1 addition & 1 deletion wolfssl/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
#endif
#elif defined(WOLFSSL_ZEPHYR)
#ifndef SINGLE_THREADED
#include <kernel.h>
#include <zephyr/kernel.h>
#endif
#elif defined(WOLFSSL_TELIT_M2MB)
/* do nothing */
Expand Down
2 changes: 1 addition & 1 deletion wolfssl/test.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
#elif defined(WOLFSSL_ZEPHYR)
#include <string.h>
#include <sys/types.h>
#include <net/socket.h>
#include <zephyr/net/socket.h>
#define SOCKET_T int
#define SOL_SOCKET 1
#define WOLFSSL_USE_GETADDRINFO
Expand Down
6 changes: 3 additions & 3 deletions wolfssl/wolfcrypt/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -1748,9 +1748,9 @@ extern void uITRON4_free(void *p) ;
#endif /*(WOLFSSL_APACHE_MYNEWT)*/

#ifdef WOLFSSL_ZEPHYR
#include <zephyr.h>
#include <sys/printk.h>
#include <sys/util.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/sys/util.h>
#include <stdlib.h>

#define WOLFSSL_DH_CONST
Expand Down
6 changes: 3 additions & 3 deletions wolfssl/wolfcrypt/wc_port.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
/* do nothing */
#elif defined(WOLFSSL_ZEPHYR)
#ifndef SINGLE_THREADED
#include <kernel.h>
#include <zephyr/kernel.h>
#endif
#elif defined(WOLFSSL_TELIT_M2MB)

Expand Down Expand Up @@ -508,7 +508,7 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
#define XFGETS(b,s,f) -2 /* Not ported yet */

#elif defined(WOLFSSL_ZEPHYR)
#include <fs/fs.h>
#include <zephyr/fs/fs.h>

#define XFILE struct fs_file_t*
#define STAT struct fs_dirent
Expand Down Expand Up @@ -913,7 +913,7 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);

#elif defined(WOLFSSL_ZEPHYR)
#ifndef _POSIX_C_SOURCE
#include <posix/time.h>
#include <zephyr/posix/time.h>
#else
#include <sys/time.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion wolfssl/wolfio.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
#include <lwip-socket.h>
#include <errno.h>
#elif defined(WOLFSSL_ZEPHYR)
#include <net/socket.h>
#include <zephyr/net/socket.h>
#elif defined(MICROCHIP_PIC32)
#include <sys/errno.h>
#elif defined(HAVE_NETX)
Expand Down
2 changes: 1 addition & 1 deletion zephyr/zephyr_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* Initialize the wolfSSL library.
*/

#include <init.h>
#include <zephyr/init.h>

#include "user_settings.h"
#include "wolfssl/ssl.h"
Expand Down

0 comments on commit a4a6a05

Please sign in to comment.