Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix use of undefined pointer types in definitions #2

Merged
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
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