Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.
Open
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
1 change: 0 additions & 1 deletion libftl/gettimeofday/gettimeofday.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#define SEC_TO_NSEC(x) (((uint64_t)x) * NSEC_IN_SEC)

#ifdef _WIN32
#include <Windows.h>

/* FILETIME of Jan 1 1970 00:00:00. */
static const unsigned __int64 epoch = ((unsigned __int64)116444736000000000ULL);
Expand Down
4 changes: 4 additions & 0 deletions libftl/gettimeofday/gettimeofday.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

#ifndef _WIN32
#include <sys/time.h>
#else
#include <WinSock2.h>

struct timezone;
#endif

#ifdef _WIN32
Expand Down