diff options
author | Taylor Yu <catalyst@torproject.org> | 2018-06-28 17:15:53 -0500 |
---|---|---|
committer | Taylor Yu <catalyst@torproject.org> | 2018-06-28 17:15:53 -0500 |
commit | f9e22c68a0c701745867a9dac391a70171654c75 (patch) | |
tree | 8102ee6d795d702563bc9c4e25e05840f7d26cf7 /src/lib/time | |
parent | be40ad51b68fa87bafb88e55db7856d373274a4d (diff) | |
download | tor-f9e22c68a0c701745867a9dac391a70171654c75.tar.gz tor-f9e22c68a0c701745867a9dac391a70171654c75.zip |
Fix macOS includes
Recent code movement from refactoring missed some includes that seem
to be necessary on macOS.
Diffstat (limited to 'src/lib/time')
-rw-r--r-- | src/lib/time/compat_time.c | 1 | ||||
-rw-r--r-- | src/lib/time/tvdiff.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/time/compat_time.c b/src/lib/time/compat_time.c index 08f99b70c9..2ea6eca988 100644 --- a/src/lib/time/compat_time.c +++ b/src/lib/time/compat_time.c @@ -16,6 +16,7 @@ #include "lib/log/torlog.h" #include "lib/log/util_bug.h" #include "lib/intmath/muldiv.h" +#include "lib/intmath/bits.h" #include "lib/fs/winlib.h" #include "lib/wallclock/timeval.h" diff --git a/src/lib/time/tvdiff.c b/src/lib/time/tvdiff.c index 9fb67bcd2d..5dbc0fd19c 100644 --- a/src/lib/time/tvdiff.c +++ b/src/lib/time/tvdiff.c @@ -11,6 +11,9 @@ #ifdef _WIN32 #include <winsock2.h> #endif +#ifdef HAVE_SYS_TIME_H +#include <sys/time.h> +#endif #define TOR_USEC_PER_SEC 1000000 |