Fix includes for zephyr 3.2.99.

Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
This commit is contained in:
Achim Kraus
2023-03-24 21:59:42 +01:00
parent 9afb881a2c
commit f1d47d533b
5 changed files with 7 additions and 6 deletions

View File

@@ -36,7 +36,7 @@
#ifdef WITH_ZEPHYR
#ifdef HAVE_NET_SOCKET_H
#include <net/socket.h>
#include <zephyr/net/socket.h>
#endif /* HAVE_NET_SOCKET_H */
typedef int in_port_t;
#endif /* WITH_ZEPHYR */

View File

@@ -25,7 +25,7 @@
#include "session.h"
#ifdef WITH_ZEPHYR
#include <logging/log.h>
#include <zephyr/logging/log.h>
#endif /* WITH_ZEPHYR */
#ifdef RIOT_VERSION

View File

@@ -55,7 +55,7 @@ typedef uint32_t clock_time_t;
#elif defined(WITH_ZEPHYR)
#include <zephyr.h>
#include <zephyr/kernel.h>
#ifndef CLOCK_SECOND
# define CLOCK_SECOND 1000

View File

@@ -18,9 +18,10 @@
*
*******************************************************************************/
#include <zephyr/random/rand32.h>
#include "tinydtls.h"
#include "dtls_prng.h"
#include "random/rand32.h"
int
dtls_prng(unsigned char *buf, size_t len) {

View File

@@ -66,9 +66,9 @@ typedef struct {
#else /* ! WITH_CONTIKI && ! WITH_RIOT_SOCK && ! WITH_LWIP_NO_SOCKET */
#ifdef WITH_ZEPHYR
#include <zephyr.h>
#include <zephyr/kernel.h>
#ifdef HAVE_NET_SOCKET_H
#include <net/socket.h>
#include <zephyr/net/socket.h>
#endif /* HAVE_NET_SOCKET_H */
#elif defined(WITH_LWIP)