mirror of
https://github.com/eclipse/tinydtls.git
synced 2025-10-14 03:10:09 +08:00
Fix includes for zephyr 3.2.99.
Signed-off-by: Achim Kraus <achim.kraus@cloudcoap.net>
This commit is contained in:
@@ -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 */
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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) {
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user