mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Include sys/time.h in timers.c and time_fmt.c
This fixes compilation on OpenBSD. Signed-off-by: Kris Katterjohn <katterjohn@gmail.com>
This commit is contained in:
committed by
Nick Mathewson
parent
9431d35074
commit
daaa2751ed
@@ -26,6 +26,10 @@
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
/* For struct timeval */
|
||||
#include <winsock2.h>
|
||||
|
||||
@@ -39,6 +39,10 @@
|
||||
#include "lib/malloc/malloc.h"
|
||||
#include "lib/time/compat_time.h"
|
||||
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
// For struct timeval.
|
||||
#include <winsock2.h>
|
||||
|
||||
Reference in New Issue
Block a user