Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions dtls_time.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
#define _DTLS_DTLS_TIME_H_

#include <stdint.h>

#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif /* HAVE_SYS_TIME_H */

#include "tinydtls.h"

Expand All @@ -50,7 +53,9 @@
typedef uint64_t clock_time_t;
#else /* WITH_CONTIKI || RIOT_VERSION */

#ifdef HAVE_TIME_H
#include <time.h>
#endif /* HAVE_TIME_H */

#ifndef CLOCK_SECOND
# define CLOCK_SECOND 1000
Expand Down
2 changes: 2 additions & 0 deletions sha2/sha2speed.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif /* HAVE_SYS_TIME_H */

#include "sha2.h"

Expand Down
2 changes: 2 additions & 0 deletions tests/dsrv-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif /* HAVE_SYS_TIME_H */

#include "dsrv.h"

Expand Down
3 changes: 3 additions & 0 deletions tests/dtls-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif /* HAVE_SYS_TIME_H */

#include <arpa/inet.h>
#include <netdb.h>
#include <signal.h>
Expand Down
2 changes: 2 additions & 0 deletions tests/dtls-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif /* HAVE_SYS_TIME_H */
#include <netdb.h>
#include <signal.h>

Expand Down