Skip to content

Commit

Permalink
Fix includes for zephyr 3.2.99.
Browse files Browse the repository at this point in the history
Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
  • Loading branch information
boaks committed Aug 7, 2023
1 parent 9afb881 commit f1d47d5
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dtls_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion dtls_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion dtls_time.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion platform-specific/dtls_prng_zephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions session.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f1d47d5

Please sign in to comment.